Assignment 2 Case Study: Clear Vision Optical Shop: 3.1 Due Date
Assignment 2 Case Study: Clear Vision Optical Shop: 3.1 Due Date
2 Objectives
To develop and test students skills at writing an using C++ programming language.
To apply linked list structure in solving the problem.
To work as a team to solve problems
3 Assignment 2 [7.5%]
3.1 Due date
Due date on 11 May 2015 (Tuesday) by 5.00pm.
3.2 Task
In this assignment, you are required to create a program to handle customers orders and calculate
the daily incomes for Clear Vision Optical Shop. Your program MUST meet the following requirements:
a) Record the customers orders using linked list implementation.
b) Your program should allow you to make various type of optical orders and print in a single
receipt.
c) Each receipt could record up to maximum 4 pairs of optical orders regardless the optical type.
d) Your system should be able to provide all the functions listed below continuously based on user
selection. The key features that MUST be included in your program are:
Menu
New order
Modify order
Cancel order
Print Current
receipt
Daily Summary
Report
List out all the optical orders at the end of the day
Ability to calculate the number of optical based on optical types.
Ability to calculate the amount of price within a transaction
Ability to calculate the total amount of money collected daily
e) Write a special method in main file to pre-define at least five (5) receipts with various orders.
3.2.1
Order receipt:
The program shall able to print out the transaction details for customer.
Clear Vision Optical Shop
Customer Name: Mae
Date: 2/2/2015
Optical type
Remarks
Quantity
(pair)
1
Amount
(RM)
85.00
Contact lenses
Glass frame
1190.00
Sunglass
1450.00
Total
3.2.2
2725.00
The program shall display the daily optical orders or sold summary with the item and price details as
following format.
Clear Vision Optical Shop
Daily Income Summary
Date: 22/2/2015
No
Item Code
Title
1
2
3
L6003
L6015
L6003
1
2
GG1008
FD8909
Gucci Eyeglasses
Fido Dido frame
Price
(RM)
85.00
60.00
85.00
Total
230.00
1190.00
250.00
1440.00
1
2
Total
GG13330
RB11088
1450.00
811.00
2261.00
3931.00
4 Submission
All documents must be submitted via the link provided in Morpheus latest by 11 May 2015 at
5.00pm. Any late submission will get 10% penalty marks per day.
Submit your answer in Zip files containing your report (.pdf) and working C++ source codes
(.cpp). Use the following naming format for submission:
GroupNo.zip
E.g: Group1.zip
Each group is required to submit only one copy of group assignment.
Files submitted with incorrect format will not be entertained.
Any plagiarism (similarity between two files that is over 50%) will be graded as a zero for the
two files.
5 Marking Scheme
The total marks for this assignment marking scheme is 100 (Will be converted into 7.5%). The marking
scheme for this assignment is as follows:
No
1
Criteria
Working Program (75%)
Requirements
Complete all functions
with correct output
(Add, Delete, View Item
Your program must be able to execute and satisfy all
Record and Daily
of the assigned requirements. A working program
Summary Report) +
which satisfies all of the requirements automatically
calculation
receives 75% of the total assignment mark.
Effective use and
design of data
structures, such as data
type, array.. linked-list
handling
Apply full OO concept
in linked-list
implementation
Creativity
E.g. design interface,
user friendly and etc.
Code structure
(Reusability,
Maintainability, etc)
Pre-set data
i. Comments on each file
(Student name and
matric number,
Assignment number, and
Date etc)
ii. Appropriate variables
name
iii. Readable code
(Standardization and use
of white spaces)
iv. Class descriptions and
comments on function
i. Wrong formats
ii. Not able to
open/execute the
program
Marks will be given based
on criteria 2, 3 and
partial of criteria 1
(maximum 25 marks)
iii. Late submission
Marks
30
10
10
10
10
5
4
6
5
10
-10
-75
-50
-100