Assignment IMPORTANT INSTRUCTION 


Please read the following instructions carefully before submitting assignment:

It should be clear that your assignment will not get any credit if:

  • The assignment is submitted after due date.
  • The assignment is submitted via email.
  • The assignment is copied from Internet or from any other student.
  • The submitted assignment does not open or file is corrupt.
  • It is in some format other than .cpp.

NOTE 

  1. You are supposed to submit your assignment in .cpp format. 
  2. Any other formats like scan images, PDF, zip, doc, rar and bmp etc will not be accepted. All types of plagiarism are strictly prohibited.

For any query about the assignment, contact at CS304@vu.edu.pk

objective

The objective of this assignment is:

To give you the idea of practical implementation of some concepts like, definition of classes, Data members, member functions, Constructors, Composition etc.

 

For any query about the assignment, contact at cs304@vu.edu.pk

problem statement

We have the following part of class diagram showing composition relationship:

You are required to implement above class diagram (complete program) in C++ with all data members, constructors, member functions and concept (composition) given in the class diagram/table 1. 

See the sample output to view the messages you need to print in constructors of all classes. In case of parameter constructors, you can select any of data member(s) according to the type of constructor. 

sample output

Views: 834

Replies to This Discussion

kindly upload solution idea

\uadiv class="grammarly-disable-indicator">

Solution Idea:

Please find the attached file below.

Attachments:

Aoa 

Attachments:

Your code doesn't implement "Composition".

See the +loyal's code.

You have to create an object of both "WebPage" and "Links" inside "WebSite" definition.

Only then it will get clear that website is COMPOSED of webpage and links.

RSS

SPONSORED LINKS

SPONSORED LINKS

© 2019   Created by Irfan Khan MSCS.   Powered by

Badges  |  Report an Issue  |  Terms of Service