CS506 Assignment 1 Solution Spring 2021
employee.txt1110, ALI, CS, MS, 5, 70000 1120, Abdullah, MGT, PhD, 10, 125000 1022, Ilyas, Bio, Master, 7, 50000 1022, Ahmad, MassCom, MS, 3, 60000
Assignment No. 01 (Graded)
SEMESTER Fall 2021
CS304- Object Oriented Programming Total Marks: 20
December 08, 2021
Please read the following instructions carefully before solving & submitting assignment:
It should be clear that your assignment will not get any credit if:
o The assignment is submitted after due date.
o The submitted assignment is other than .doc/.docx file.
o The submitted assignment does NOT open or file is corrupted.
o The assignment is copied (from other student or copied from handouts or internet).
Solution Uploading instructions
o For clarity and simplicity, you are required to Upload/Submit only .DOC/.DOCX file
o Copy/Paste your class diagram in your final MS Word file if you are using any drawing tool (MS Paint, MS Visio etc.). Images submitted as solution files will not be accepted.
o You can use the following website to draw the diagram: https://app.creately.com/diagram/start/dashboard
The objective of this assignment is:
o To give you the idea of practical implementation of the OOP concepts like abstraction, encapsulation, inheritance, association, generalization, specialization, and UML class construction.
For any query about the assignment, contact at [email protected]
Due to the increasing number of complaints regarding meat quality, Govt. Of Pakistan has decided to launch an “online meat Store” named “Meat On Wheels” so that, people can
purchase red and white meat from home. Through this way, Govt. of Pakistan not only can ensure the quality of meat but also people can be satisfied with the fact that the meat they are purchasing is healthy and Halal.
The “Meat On Wheels” store will offer both (red and white) types of meat with all different categories or portions. The user will be shown a list of Meat Products, which can be selected or deselected from the provided list. The user will need to get registered to buy Meat Products. At the end of shopping, the customer can double-check all the Products added into his Cart and verify the total amount before payment. The Store Administrator will manage Meat categories and Products and assign orders to Delivery Boys.
Draw an Object Model (Class Diagram) for the given scenario showing main objects, their attributes, functions and relationships.
Step by Step Guidance:
• Extract the main objects (entities) of above system.
• Find the necessary attributes and functions that need to be associated with each object.
• Identify the relationships among identified objects.
Submission: Construct a final comprehensive Class diagram showing all objects and their relationships along with their attributes and functions.
Important things to consider:
Lectures Covered: This assignment covers Lecture # 1-7
Deadline: December 08, 2021