50508_assignment2 (4)

4

Click here to load reader

Upload: vignesvaran

Post on 07-Jul-2018

215 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: 50508_Assignment2 (4)

8/19/2019 50508_Assignment2 (4)

http://slidepdf.com/reader/full/50508assignment2-4 1/4

TCP1201 Object-oriented Programming and Data Structures

Trimester 2, Session 2015/2016

Based on the class diagram given above, implement a console-based tourist information system providing information

about tourist attractions in various cities. The administrator of the system will specify the necessary information and

tourists will view the information by choosing from a text-based menu. A search feature is not required by this system.

Before implementing the system, do an analysis to identify all the necessary data members and member functions

required by each class taking into consideration special functions like constructors and copy constructors. Add more

classes, for example, for new types of attractions, to your design if needed to make it a comprehensive tourist

information system. ou may also add more features to the system beyond the user requirements listed below. !odify

the given class diagram accordingly.

Miestone 1

"ser #equirements

- A city has many attractions and the attractions can be classi$ed into various types. To view the detailed information of

an attraction, a tourist will $rst choose a city from a list of cities displayed in alphabetical order, the type of attraction

from a list of attraction types and then the attraction itself. %e can also choose a city and then choose from a list of all

attractions in the city without choosing a type of attraction. The maximum number of attractions per city must not be

$xed in the system.

- The user interface has to be user-friendly so that users can navigate with ease. &esign a console-based user interface

for the system.

Page 2: 50508_Assignment2 (4)

8/19/2019 50508_Assignment2 (4)

http://slidepdf.com/reader/full/50508assignment2-4 2/4

Page 3: 50508_Assignment2 (4)

8/19/2019 50508_Assignment2 (4)

http://slidepdf.com/reader/full/50508assignment2-4 3/4

Miestone 1 Mar" S#eet

 !ax !arks

Documentation o$ t#e code (

Cass Diagram (

%eatures

a. /ity selection (

b. Attraction selection

c. Type selection (

d. Attraction display (

e. "se of T2 (

TOT&' (

Miestone 2 Mar" S#eet

 !ax !arks

Documentation o$ t#e code (

Cass Diagram (

%eatures

a. Abstract class (

b. 5olymorphism (

c. A&T

d. /ity connection 0

f. upport for the administrator 0

TOT&' 12

*ach feature will be evaluated based on ful$llment of requirements, correctness, compilation without warnings and

errors, error free during runtime, basic error handling, quality of comments and operation contracts, user friendliness,

and good coding format and style.

tudents who score less than 8 marks in !ilestone ( will be allowed to resubmit !ilestone ( together with !ilestone .

#esubmitted !ilestone ( will be marked to a maximum of 8 marks only.

() Submission !nstruction

Page 4: 50508_Assignment2 (4)

8/19/2019 50508_Assignment2 (4)

http://slidepdf.com/reader/full/50508assignment2-4 4/4

a. /reate a folder in the following format9

T*TO+!&'SCT!O.M1.%*''&M

b. 5lace O' your $les of formats .cpp, .h and 5&' in the folder. &4 34T place your )ee $le in the

folder.

c. :ip your folder to create a ;ip <!(=>A3=34#=AT1?A%.;ip@ archive .

. end the ;ipped $le to your respective tutor before the deadline. The email title should be TCP1201 M1 Sub-

mission

a. 2ate submission will be detected through the system clock.

 

3ote9 ome tutors may request for printed copy to be submitted.

This will be announced by the respective tutors.

0. Additional 1nformation

a. marks will be deducted if the submission instructions are not followed.

b. ou are expected to make sure that your code is easily readable. 5ay attention to indentation.

c. 1n your .cpp and .h $les, insert appropriate comments to help others to understand your code.

d. 'or A22 your .cpp and .h $les, insert the following info at the header9

/*************************************Program: YOUR_PROGRAM_NAME.cppCourse: OOPDSYear: 200/0! "r#mes$er %Name: &AN NOR A"'(A)'D: 0+00,-+ec$ure: "C0a: "C20Ema#1: ac2%3ma#1.comP4o5e: 062%,-+*************************************/