Practice Time
Case Study ABC Stationery Shop
The ABC Stationery Shop needs a system to store and keep track of all the items. The minimum requirements are:
The details of the Product which stores information about items and cost.
The Sale is the daily process where the customers purchase items of certain quantity.
Decide the number of classes that would hold the required data, Design the fields or data members and the member functions of
each class. Create objects of each kind along with data value of your own. In the solution same data is repeated on the sale class.
This will be avoided when proper design of classes will be understood. But now, create classes with all relevant data
Solution : Proposed Classes
Class Product
Class Sale
Data members:
Data members:
Item Category
Item Name
Item Name
Sale Quantity
Item Cost
Item Cost
Methods:
Amount
Enter Details
Methods:
Display Details
Enter Sale Details
Calculate Amount
Display Sale Details
Objects with data
Producti
Product2
Sale2
Sale1
Pen
Pencil
Parker
NatrajHB
Parker
NatrajHB
2
5
200
2
10
200
1000
20
Answers
Answered by
0
Answer:
ABCD
Explanation:
Calculatefjjffjkjfddhjhddnlcrlukkknudllscogmk...
Answered by
0
Answer:
ABCDEFGHIJKLMNOPQRSTUVWXYZ
Similar questions