Vous êtes sur la page 1sur 2

TCP1201 Objected-Oriented Programming and Data Structures

Assignment 1
Trimester 1, Session 2014/2015
Faculty of Computing and Informatics
Multimedia University

DUE DATE: 14 July 2014, 11:59pm

Outline
This assignment contributes 10% of total subject mark. The assignment consists of only one
question. Every student submits one assignment individually. Interview will be conducted.
You are strongly advised to submit the assignment in time even though it is incomplete. For
late submission, zero mark will be given. No extension of dateline will be entertained so that
the lecturer would have sufficient time to assess and release the mark before the final
exam. Exact interview date and time will be scheduled after the due date.

Make sure your program code can be compiled under g++ 4.7.1. You may download
Code::Blocks 12.11 with bundled g++ 4.7.1 at
http://www.codeblocks.org/downloads/26#windows.

Problem Statement
You are hired to develop a vehicle management program for a company. The company owns
many vehicles of different types which are managed by several managers. Each manager is
assigned to manage several vehicles (of different types). The system should perform the
following tasks:
1. Create and delete vehicles, and update/change the manager of a vehicle. A vehicle is
managed by zero or one manager at a time. The system should supports at least 3 types
of vehicles:
a. Airplane
b. Bus
c. Car
2. Create and delete managers, and Update the list of vehicles managed by a manager. A
manager may manage many vehicles. When a manager is deleted, all vehicles under
his/her management should still be seen in the system but has no manager assigned to
it.
3. The system should support the exchange of vehicle(s) between 2 managers. For
example, exchange a car managed by Ali with a bus managed by Bob.

Submission Format
1. A zip file name "TC20X_StudentID_StudentName.zip". TC20X is your lab
section. StudentID is your student ID.StudentName is your name. The zip should
contain your source code files (*.hpp and *.cpp). Do not attach any .exe file as some
mail servers such as GMail would reject it.
2. Compose an email with subject as "TC20X StudentID StudentName".
3. Attached the TC20X_StudentID_StudentName.zip created in Step 1.
4. Send the email with attachment to your lecturer.
5. The submission will be regarded as late if it reaches the lecturer's mail box after the
due date. The sending time won't be considered. Email at least several hours earlier to
avoid potential Internet problem. Do not make multiple submissions.


Feature Sheet & Evaluation Criteria
Criteria Item
1. Program Design (4 marks) 1.1. Style (indentation, self-documentation, identifier) &
Modularity (small size functions/methods) [0.5m]
1.2. Separation of interface and implementation (.hpp and
.cpp) [1m]
1.3. Composition [1m]
1.4. Inheritance [1m]
1.5. Polymorphism [0.5m]
2. Program execution (6 marks.
0 if unable to compile or
run)
2.1. User friendliness (input & output sufficiently self-
explain) [1m]
2.2. Correct program features and output (all attributes
must be shown during listing). Mark is given only if the
result is correct.
2.2.1. Create vehicle [0.5m]
(Hardcode a few vehicles in your program to save time
during interview)
2.2.2. Update vehicle: change manager [1m]
(The manager's vehicles list should be updated too)
2.2.3. List all vehicles and its manager [0.5m]
2.2.4. Delete vehicle [0.5m]
(The manager's vehicles list should be updated too)
2.2.5. Create manager [0.5m]
2.2.6. List all managers and their vehicles, sorted by
manager [1m]
2.2.7. Delete a manager [0.5m]
(The vehicles should still exist)
2.2.8. Swap vehicles among 2 managers [0.5m]
3. Interview (0 mark for the
assignment if fail to be
present for interview)
3.1. Fluency in using the program
3.2. Ability to explain code
4. Plagiarism, late submission,
or multiple submission
0 mark for the whole assignment

Vous aimerez peut-être aussi