You are on page 1of 27

AACS1074 Programming Concepts & Design

TUNKU ABDUL RAHMAN UNIVERSITY COLLEGE


FACULTY OF COMPUTING AND INFORMATION TECHNOLOGY
SEMESTER 1 - ACADEMIC YEAR 2019/2020

AACS1074
PROGRAMMING CONCEPTS & DESIGN I
(ASSIGNMENT)

STUDENT NAME : Chiam Yee Hang


STUDENT ID : 19PMD04277
PROGRAMME : DIA
TUTORIAL GROUP : 2

TUTOR : Mr.Nikalus Swee Shu Ling


SUBMISSION DATE : 9.8.2019
AACS1074 Programming Concepts & Design

AACS1074 PCD I Assignment Assessment Criteria & Feedback Form

Name:Chiam Yee Hang_____________ Programme / Group No:DIA_/2____

Program (70%) Report (30%)


Ordering requirements met – for 1 order Intro/ description
• Start screen – logo, system, date • Clarity
• Display price list & discounts tidily • Useful info
• Ordering and charges calculation
• Handling of Order Cancellation Overall Program Design
• Correct Discount % and calculation • Correct / Suitable
• Deposit & Balance due calculation • Tidy
• Display Order Note tidily
• Order Note with correct amounts
• Ending message
Order Summary has all accurate amounts/totals Method of Solution
• Heading & date • Flowchart OR pseudocode
• Total customer orders • Correct use, eg. Symbols,
• Indiv. cookie quantities & amounts indentation etc
• Sales totals, discount totals, Net sales totals, Added Features
deposit totals, balance due totals • Clear description and usefulness
• Numbers aligned correctly • With appropriate screenshot etc
User friendliness Outputs 1
• easy to use, pleasant / courteous • Scenario table (new page)
• general output format is tidy • Complete set of screenshots
Good use of selection structure Outputs 2
 Suitable/appropriate structure for determining • Scenario table (new page)
discount • Complete set of screenshots
Good use of loop structure Outputs 3
• Correct looping for next order • Scenario table (new page)
• Correct looping for Cancelling order • Complete set of screenshots
• Correct logic for totaling amounts
Originality Constants & Variables
• uniqueness • copy / paste from program
• creativity • clear /useful description
Readability Program Listing
• suitable identifier names
• constants used as appropriate  adequate
& useful comments
• program indentation
• clear programming constructs
AACS1074 Programming Concepts & Design

Added Features Penalty (if any)


• (3 average or 2 complex features) • Incomplete submission, eg:
• Usefulness to user/customer o No soft copy, missing chapter etc
• Complexity of program/logic o -1 per item
• Successfully implemented • Flowchart/pseudocode is totally
• NOT considered as features - use of program different from program o -5
constructs / commands (eg. Blinking screen) (at tutor's discretion)
Penalty (if any)
• Inefficient / illogical structures, eg: o
unnecessary looping o
inappropriate structures
• -2 per occurrence (at tutor's discretion)
Subtotal Subtotal
/70 /30
TOTAL =

Sem1, 2019/20
AACS1074 Programming Concepts & Design

Declaration of Originality

I declare that this assignment is free from all forms of plagiarism and for all intents and purposes is my
own work. I understand that I will be penalized if I have not complied with TAR UC’s Plagiarism policy.

Student Name :_________________________

Signature : __________________________

Date : __________________________
AACS1074 Programming Concepts & Design

Table of Content

No. Title Page No.

1 Brief description / purpose

2 Overall program structure

3 Method of solution

4 Added features

5 Program testing & outputs

6 Constant & variables

7 Program listing -

8 Softcopy (CD / DVD) -


AACS1074 Programming Concepts & Design

Brief description/Purpose
During festive seasons, the TARUC Festive Cookies Bakery needs to efficiently get orders from
customers and keep details of the cookies ordered.
I have been hired to develop a simple Cooking Ordering System that will enable the bakery to get the
cookie orders efficiently, and at the end of the day produce an Order Summary for management purpose.
As a programmer, I will design a system that can help to process the orders from customer efficiently.
The system is programmed to getting the orders from the customer. The program asks the customer to
input the quantity of the item that they want to purchase. At the end, the system will calculate the amount
that need to pay by the customer automatically, this will further improve the efficiency of the bakery. I
also add a couple of feature to improve the practicality of the system.

1
AACS1074 Programming Concepts & Design

Overall Program Design

2
AACS1074 Programming Concepts & Design

Method of Solution

Pseudocode

3
AACS1074 Programming Concepts & Design

Added features

Main menu-This feature is design to make the user understand the system easily, user can also

choose option to check something through the menu.

Member card-This feature allow the user who already is the member of the bakery enjoy extra

discount.

Invalid input-This feature prevents the user from entering the wrong input.
AACS1074 Programming Concepts & Design

Program Testing & Outputs

First Scenario
AACS1074 Programming Concepts & Design

Order 1
AACS1074 Programming Concepts & Design

Order 2
AACS1074 Programming Concepts & Design

Order 3
AACS1074 Programming Concepts & Design

Total

Inputs Expected Results/Outputs


Order No. Love Nut Asst Deposit Total Amount Discount Amount- Balance to
Letters Cookies Cookies Discount pay
1 4 4 4 100 4*25+4*20+ 0%=0.00 240 240-100=
4*15=240 140.00
2 8 8 8 200 8*25+8*20+ 0%=0.00 480 480-200=
(cancelled) 8*15=480 280.00
2 12 12 12 400 12*25+12*20+ 5%= 684 684-400=
12*15=720 36.00 284.00
3 16 16 16 500 16*25+16*25+ 5%= 912 912-500=
16*25=960 48.00 412.00
Totals 32 32 32 1000 240+720+960 84.00 240+684 140+
=1920 +912 284+412
=1836 =836.00
AACS1074 Programming Concepts & Design

Order 1
AACS1074 Programming Concepts & Design

10

Order 2 (cancel)
AACS1074 Programming Concepts & Design

Order 2

11
AACS1074 Programming Concepts & Design

Order 3

12
AACS1074 Programming Concepts & Design

Total

13
AACS1074 Programming Concepts & Design

Scenario 3

Inputs Expected Results/Outputs


Order Love Nut Asst Dep Total Disco Member Amount- Balance to
No. Letter Cookie Cookie osit Amount unt Discount Discount pay
s s s
1 1 1 1 10 1*25+ 0%=0 Member 57.00 60.00-
1*20+ .00 5%=3.00 10.00=50.
1*15= 00
60.00
2 10 10 10 500 10*25+1 5%= Not 570.00 600.00-
0*20+10 30.0 Member= 500.00=
*15= 0 0%=0.00 100.00
600.00
3 20 20 20 800 20*25+2 10%= Not 1080.00 1200-
0*20+20 120. member= 800=
*15=120 00 0% 400.00
0.00 =0.00

Totals 31 31 31 1310 31*25+3 150. 3.00 1701.00 1860-


1*20+31 00 1310=550
*15=186
0.00

14
AACS1074 Programming Concepts & Design

Order 1
AACS1074 Programming Concepts & Design

15

Order 2
AACS1074 Programming Concepts & Design

16

Order 3
AACS1074 Programming Concepts & Design

17

Total
AACS1074 Programming Concepts & Design

18

Constants & variables

Variables

Data Type Value Name Function


int orderNum To store the number of order
taken
int numOfLL To store the number of love letter
cookies
int numOfNC To store the number of Nut
cookies
int numOfAC To store the number of Asst
Cookies
int ttlSummaryLL To store the total summary of
Love Letters Cookies
int ttlSummaryNC To store the total summary of Nut
Cookies
int ttlSummaryAC To store the total summary of
Asst Cookies
double totalOfLL To store the total number of Love
Letter Cookies
double totalOfAC To store the total number of Asst
Cookies
double totalOfNC To store the total number of Nut
Cookies
double totalOrder To store the total order
double discountRate To store the rate of discount
double discountRate1 To store the rate of discount
double discount To store the value of discount of
each transaction
double discount1 To store the value of discount of
each transaction
double discount2 To store the value of discount of
each transaction
double leftToPay To store the amount of money left
to pay
double finalOrder To store the amount of final order
double deposit1 To store the amount of deposit
AACS1074 Programming Concepts & Design

double deposit To store the amount of deposit


double amountLL To store the price of love letter
cookies
double amountNC To store the price of nut cookies
double amountAC Tp store the price of asst cookies
double totalSales To store the total amount of sales
double totalDiscount To store the total amount of
discount
double netSales To store the amount of net sales
double totalDeposit To store the total amount of
deposit
char userChoice To store the choice of user
char confirmOrder To store the confirmation letter of
order
char confirmMember To store the confirmation
alphabet of member
char nextOrder To store the next order character
char totalBalance To store the alphabet of total
balance

Constants

Data type Value Name Function


LOVELETTERS_PRICE To define the price of love
letters cookie
NUTCOOKIES_PRICE To define the price of nut
cookies
ASSTCOOKIES_PRICE To define the price of asst
cookies
AACS1074 Programming Concepts & Design

20

You might also like