Assignment 2 Case Study: Clear Vision Optical Shop: 3.1 Due Date

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 3

Assignment 2

Case Study: Clear Vision Optical Shop


1 Introduction
This is a group assignment with 3-4 students per group and the group members should remain the same
as previous assignment. This assignment is a continuous work from Assignment 1 and it contributes to
7.5% of the total grade of this course. Your solution can be modified from your previous program or build
it from scratch.

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

Display main menu options


Take new optical order transaction
Change the order details or status of order
Delete an order [cancel the complete orders made in a single receipt]
Display each receipt with all the order details.

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

Receipt No: 00188

Optical type

Remarks

Quantity
(pair)
1

Amount
(RM)
85.00

Contact lenses

Lenses L6003 (Ocean Blue Color)

Glass frame

Gucci GG1008 Eyeglasses

1190.00

Sunglass

Gucci 13330 Techno-ultra light


sunglasses

1450.00

Total

3.2.2

2725.00

Daily Summary Report

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

Lenses (Ocean Blue Color)


Lenses (Grey Color)
Lenses (Ocean Blue Color)

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

Techno-ultra light sunglasses


Ray Ban Aviator

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.

Programming Style (25%)

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

Your program should use appropriate naming


convention and comment style. Your code should
be formatted in a readable way, with appropriately
named variables, and your own helper functions
defined whenever appropriate. Appropriate file
management and use of header files are
recommended. You should provide comments to
explain each function defined in the program. You
should write comments describing the purpose of
that function or class.
Penalties
Submission format:
Zip files containing your report (.pdf) and C++
coding (.cpp). Use the following format for
submission:
GroupNo.zip
E.g: Group01.zip
Penalties will be given to the group if you are not
following all of the criteria mentioned above. To
avoid any late submission penalties, you must
submit your assignment on or before the due date iv. Plagiarism
and due time. You MUST NOT copy your friends
work.

Marks
30

10

10
10

10
5
4

6
5
10
-10
-75

-50
-100

You might also like