Instructions:
Please
read the following instructions carefully before submitting assignment:
read the following instructions carefully before submitting assignment:
It
should be clear that your assignment will not get any credit if:
should be clear that your assignment will not get any credit if:
§
The assignment is
submitted after due date.
The assignment is
submitted after due date.
§
The assignment is
submitted via email.
The assignment is
submitted via email.
§
The assignment is
copied from Internet or from any other student.
The assignment is
copied from Internet or from any other student.
§
The submitted
assignment does not open or file is corrupt.
The submitted
assignment does not open or file is corrupt.
§ It is in some format other than .cpp.
1)
Note: You are supposed to submit your assignment in .cpp format. Any
other formats like scan images, PDF, zip, doc, rar and bmp etc will not be
accepted. All types of plagiarism
are strictly prohibited.
Note: You are supposed to submit your assignment in .cpp format. Any
other formats like scan images, PDF, zip, doc, rar and bmp etc will not be
accepted. All types of plagiarism
are strictly prohibited.
Objective
The objective of this assignment
is:
is:
o
To
give you the idea of practical implementation of some concepts like, definition
of classes, Data members, member functions, Constructors, Aggregation and
Composition etc.
To
give you the idea of practical implementation of some concepts like, definition
of classes, Data members, member functions, Constructors, Aggregation and
Composition etc.
For any query about the assignment, contact at cs304@vu.edu.pk
GOOD LUCK!
You are required to implement above class diagram
(complete program) in C++ with all data members, constructors, member functions
and concept (aggregation) given in the class diagram/table 1.
(complete program) in C++ with all data members, constructors, member functions
and concept (aggregation) given in the class diagram/table 1.
Class
Name |
Functions
|
|
Grocery Home
|
-Default constructor
|
|
Fruit Store
|
-Default constructor
|
|
Grocery Store
|
-Default constructor
|
|
Dairy Store
|
-Default constructor
|
|
Apple
|
-Default constructor
|
|
Grapes
|
-Default constructor
|
|
Guava
|
-Default constructor
|
|
Tetra Milk
|
-Default constructor
|
|
Whitener
|
-Default constructor
|
|
Cream
|
-Default constructor
|
|
Cooking Oil
|
-Default constructor
|
|
Rice
|
-Default constructor
|
|
Flour
|
-Default constructor
|
Table 1: Classes
Note: You have to
submit .CPP file. See the sample Output to view the messages you need to print
in constructors of all classes.
submit .CPP file. See the sample Output to view the messages you need to print
in constructors of all classes.