Você está na página 1de 4

ASSIGNMENT 1

Case Study: NewGen Watches


1

Introduction

This is a group assignment with 3-4 students per group and it contributes to 7.5% of the
total grade of this course.

Objectives

To

programming language.
To develop problem-solving skills in object-oriented development features and

concepts such as Classes, Objects etc.


To work as a team to solve problems.

evaluate

students skills at writing an object-oriented program using C++

Assignment 1 [7.5 marks]

3.1 Due date


Due date on 6 April 2015 (Monday) by 5.00pm.

3.2 Assignment Introduction


NewGen Watches is a watch retailer sells different type of watches such as analogue
watches, digital watches and smart watches and etc. All the NewGen Watches business
operations are performed manually which include to keep track of the watches in the
store and to record all the daily business transactions. As business of NewGen Watches
grows larger, this traditional business approach is inefficient to support daily business
operations.

Therefore, the management of NewGen Watches decided to computerize its

business operation to ensure the effectiveness of their business process and to enhance
the quality in customer service.

3.3 Task
Write a program to demonstrate your ability to apply object-oriented principles;
encapsulation,

inheritance and polymorphism

concepts

in designing

programming

solutions for NewGen Watches. Your program should have at least one super class and
two sub-classes. The following requirements MUST be met:
a) Program must consist at least 2 levels of class inheritance;
b) Each class should have at least 3 attributes, 2 methods and 1 constructor;

c) At least one class contain overloading class constructors;


d) Perform overriding methods;
e) Each class should has at least a method to set new values

and

to retrieve the

values of the class attributes;


f)

Create an array(s) with maximum size of 10 to store or record the watches you have
created.

g) Your system MUST provide the following functions to manage the operations for the
retail shop:
Menu
Add function
Delete
function
Edit function
View
Exit

Display main menu options


Ability to add different new watches and add in an array
Ability to delete an existing watch from the array

Ability to modify the information of an existing watch.


Ability to view all the list of watches created in the record.
Exit from the program

h) Your system should be able to provide all the functions listed in (g) above continuously
i)

based on user selection.


Write a special method in the main file to pre-define at least five (5) objects of each

j)

class in the record. Eg. 5 analog watches and 5 smart watches.


Submit a report contains UML class diagram of your classes design and the screenshot
of your program output.

Your report should not exceed more than 3 pages (not

including cover).
Report Format : Times New Roman, font size 12, spacing 1.5, justified.
k) You are encouraged to use your own creativity and ideas to design your classes and
functions to make your system reusable and maintainable.

Submission

All documents must be submitted via the link provided in Morpheus latest by 6
April 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: Group01.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.

Marking Scheme

The total marks for this assignment marking scheme is 100 (Will be converted into
10%). The marking scheme for this assignment is as follows:
No Criteria
Requirements
Mark
s
1
Complete all functions with
20
correct output (Add, Delete,
Working Program (70%)
Update and View)
10
Your program must be able to execute and Effective use and design of
satisfy all of the assigned requirements. A data structures such as
working program which satisfies all of the arrays
requirements automatically receives 65% of (none-0, simple 5, Good10)
the total assignment mark.
Object-oriented concept
10
Implement at least 2 levels
of inheritance class
Efficiency of OO concept
implementation

Programming Style (20%)

Your program should use of appropriate name


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.
Report (10%)
Your report should include the UML class
diagram of your program and the screenshot
of your program output. You must upload your
assignment in Morpheus. Your report should
not exceed more than 3 pages (not including
cover) and you MUST USE UNIMAS

Overriding & Overloading


Creativity
E.g. design interface, user
friendly and etc.
Pre-defined data method
Pre-set 5 objects for each
class in code
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. UML Diagram on class


design
ii. Screenshot of output
short description

10
10

5
5

6
4

assignment cover.
4

Penalties
Format: Times New Roman, font size 12,
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 and due time. You MUST NOT
copy your friends work.

Not able to open/execute the


program
Marks will be given based on
criteria 2, 3 and partial of
criteria 1 (maximum 15
marks
iii. Late submission
iv. Plagiarism

-70

-50
-100

Você também pode gostar