Share:
Notifications
Clear all

Grand Quiz vu is available for moslty subjects please check in Papers section of relevant subject. Share your Grand Quiz to help each other. (Please keep visiting and sharing)


WhatsApp Groups Subject wise #QueryVU Join Now

[Solved] CS304 Assignment 1 Solution & Discussion Spring 2020  

  RSS

admin
(@admin)
Admin
Joined: 2 years ago
Posts: 3351
27/05/2020 3:28 pm  

CS304 Object Oriented Programming Assignment 1 Solution & Discussion Spring 2020


 

 

Assignment No. 01 (Graded)
SEMESTER SPRING 2020
CS304- Object Oriented Programming

Total Marks: 20

Due Date  June 1, 2020

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.                                          

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: 20 

Problem Statement:

Due to the COVID-19 pandemic, the government wants to launch an online store “Online Medical Store” so that various medical related items can be provided to people without going to store. This will allow reducing the movement of people and minimizing the spread of disease. The proposed store will offer various products like medicine, hand sanitizers, masks, safety kits, testing kits, and gloves. Two different types of users (such as individual customer and organization) can place their orders online by using multiple payment methods such as Debit/Credit card and Cash on Delivery.

 

Draw an Object Model (Class Diagram) for the given scenario showing main objects, their attributes, functions and relationships.

The tasks you have to do are:

  1. Extract the main objects (entities) of above system.
  2. Find the necessary attributes and functions that need to be associated with each object.
  3. Identify the relationships among identified objects.
  4. Construct a final comprehensive Class diagram showing all objects and their relationships along with their attributes and functions.

Important things to consider:

1.      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.

2.     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-6

Deadline:             Your assignment must be uploaded/submitted within due date i.e. June 1, 2020.

       

 

How is this website, please share your feedback through this link: https://forms.gle/mZ5rsd995RxU2gEZ7
---------------------
WhatsApp Groups Subject wise #QueryVU
Join Now


Quote
admin
(@admin)
Admin
Joined: 2 years ago
Posts: 3351
27/05/2020 3:32 pm  

CS304 Object Oriented Programming Assignment 1 Solution & Discussion Spring 2020


@kn6569

Solution Idea CS304: 

 

Question No.1

        Extract the main objects (entities) of above system ?

 

Solution:

This project main purpose is the Online Medical Store record in one of all requirements like as Medicines Blood,etc.

The main objective is to develop a Online Medical Store for

  1. To implement the system
  2. To test and validate the system

 

 

Question No.2

Find the necessary attributes and functions that need to be associated with each object ?

 

Solution:

There are the following necessary attributes and functions that need to be a online medical store.

  1. Medical shop Entity
  2. Medicines Entity
  3. Stocks Entity
  4. Company Entity
  5. Inventory Entitiy
  6. Sells Entity 

 

 

Question No.3

Identify the relationships among identified objects.

 

Solution:

The ER ( Entity Relationship) Diagram represents the model of Medical Store Management System Entity. The entity-relationship diagram of Medical Store Mangement System shows all the visual instrument of database tables and the relations between Medicines, Company, Medical Shops, Sells etc. It used structure data and to define the relationships between structure data groups of Medical Store Management System functionalities. The main entities of the Medical Store Management System are Medical Shop. Medicines, Stocks, Company, Inventory and Sells.

 

 

Question No.4

Construct a final comprehensive Class diagram showing all objects and their relationships along with their attributes and functions.

 

Solution:

This post was modified 1 month ago by talhaofficial0

How is this website, please share your feedback through this link: https://forms.gle/mZ5rsd995RxU2gEZ7
---------------------
WhatsApp Groups Subject wise #QueryVU
Join Now


ReplyQuote
admin
(@admin)
Admin
Joined: 2 years ago
Posts: 3351
29/05/2020 6:42 pm  

@mc190203271

How is this website, please share your feedback through this link: https://forms.gle/mZ5rsd995RxU2gEZ7
---------------------
WhatsApp Groups Subject wise #QueryVU
Join Now


ReplyQuote
Muhammad Zain
(@zainrana911)
New Member
Joined: 8 months ago
Posts: 1
30/05/2020 3:16 pm  

Kindly provide in the Word


ReplyQuote
admin
(@admin)
Admin
Joined: 2 years ago
Posts: 3351
30/05/2020 5:28 pm  

@zainrana911 Just copy the solution and paste it in MS Word !

How is this website, please share your feedback through this link: https://forms.gle/mZ5rsd995RxU2gEZ7
---------------------
WhatsApp Groups Subject wise #QueryVU
Join Now


ReplyQuote
mc190203271
(@mc190203271)
Eminent Member
Joined: 6 months ago
Posts: 20
11/06/2020 8:04 pm  

need assignment 2 solution 2020


ReplyQuote
Share: