CS304 Assignment 1 Solution and Discussion Fall 2020
-
-
-
-
-
-
Assignment No. 01 (Graded)
SEMESTER Fall 2021
CS304- Object Oriented Programming Total Marks: 20
Due Date:
December 08, 2021
Instructions
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
Objective
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]
GOOD LUCK
Marks: 20Problem Statement:
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:- As happens in real world that everyone visualizes a problem in a different way so the solutions of all students may vary based upon their own thinking.
- You have to use standard UML notations for objects, classes, and their associations.
Hint:
Besides problem statement; objects, properties, and functions of a system can also be extracted from domain knowledge.
Note:
You have to use all concepts studied so far like abstraction, encapsulation, inheritance, association, generalization, and specialization wherever applicable.
Lectures Covered: This assignment covers Lecture # 1-7
Deadline: December 08, 2021 -


100% Off on Your FEE Join US! Ask Me How?


