Latest Activity In Study Groups

Join Your Study Groups

VU Past Papers, MCQs and More

We non-commercial site working hard since 2009 to facilitate learning Read More. We can't keep up without your support. Donate.

CS304 Object Oriented Programming Assignment No 1 Solution and Discussion Spring 2014 Due Date: May 02, 2014

             

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

Total Marks: 20

Due Date : 02-05-2014

Instructions

Please read the following instructions carefully before solving & submitting assignment:

It should be clear that your assignment will not get any credit (zero marks) if:

  • The assignment is submitted after due date.
  • The submitted assignment is other than .doc file.
  • The submitted assignment does NOT open or file is corrupted.
  • The assignment is copied (from other student or ditto copy from handouts or internet).

Uploading instructions

 

  • For clarity and simplicity, you are required to Upload/Submit only .DOC file
    • Copy/Paste your class diagram in your final MS Word (.doc) file if you are using any drawing tool (MS Paint, MS Visio etc).                                                    

Objective

The objective of this assignment is:

 

  • To give you the idea of practical implementation of some of the OOP concepts like abstraction, encapsulation, inheritance, association, generalization, specialization, and UML class construction.

 

For any query about the assignment, contact at CS304@vu.edu.pk

GOOD LUCK

 

Marks: 20 

 

Problem Statement:

 

Suppose there is a company “Zeta International” that is involved in export business of fruits from Pakistan to three continents Asia, Africa and Europe. Consider that the company is using several types of transport i.e. Land transport, Sea transport, and Air transport to carry goods. It uses Land and Sea transport from Pakistan to South East Asia, Middle East, Far East, and Africa. Furthermore, it uses sea and air transport for European countries. It also has cold rooms and halls available to rent in for customers’ small and large orders respectively.

 

The tasks you have to do are:

  1. Extract the main objects (entities) for above system.
  2. Find the necessary attributes and functions that need to be associated with each object (You are required to mention at most three attributes and one functions for a class).
  3. Identify the relationships between these 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, not taken from any source.
  2. You have to use standard UML notations for objects, classes, and their associations. 

Hint:

  1. Besides problem statement; objects, properties, and functions of a system can also be extracted from       

      domain knowledge.

Note:

  1. 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 at or before 2nd May, 2014.  

Views: 8942

Replies to This Discussion

wellcome Sir

Assalam o Alaikum Adnan bhai.

is ki diagram kahan hy?

bhai jan diagram ke begair b to ye assignment solve ho sakti hia na?

to is liye me diagram ke begair solve kar di hai simple

bro whats mean of UML diagrams are must in this assignment

One Function and Three Objects of a Class:

Transport Class and Buyer’s Class are interconnected with Zeta Business Class.

Transport Class                     Zeta Business Class                           Buyer’s Class

Loads                                      Exports Fruit                                       Has Adress

Moves                                     Ships Fruit                                           Orders Goods

Unloads                                   Air Fruit                                              Receives Goods

Earn’s Money                        Earn’s Money                                    Pay’s Money  

Under in Transport Class:

Sea Class                                Land Class                                         Air Class       

Loads From Port                     Load from Yard                                  Load From Air Port

Delivers to Port                       Delivers to Port                                   Delivers to Air Port

Moves Goods                          Local Mover’s                                     Air Frieght

Get’s Money                          Get’s Money                                      Get’s Money

One Function and Three Objects of a Class:

Transport Class and Buyer’s Class are interconnected with Zeta Business Class.

Transport Class                     Zeta Business Class                           Buyer’s Class

Loads                                      Exports Fruit                                       Has Adress

Moves                                     Ships Fruit                                           Orders Goods

Unloads                                   Air Fruit                                              Receives Goods

Earn’s Money                        Earn’s Money                                    Pay’s Money 

Under in Transport Class:

Sea Class                                Land Class                                         Air Class       

Loads From Port                     Load from Yard                                  Load From Air Port

Delivers to Port                       Delivers to Port                                   Delivers to Air Port

Moves Goods                          Local Mover’s                                     Air Frieght

Get’s Money                          Get’s Money                                      Get’s Money

Under Buyer’s Class:

Africa Class                           Asia Class                                           Eurpoe Class

Has Storage                             Has Storage                                         Has Storage

Has Adress                              Has Adress                                          Has Adress

Rec Goods                              Rec Goods                                          Rec Goods     

Pays Money                           Pays Money                                       Pays Money

mja smj ni lg rhi plz hlp me

its a non graded assignment so dnt  worry

Its good for you all to do all the work step by step!

First identify objects and note down 

Second Find out attributes and functions of those objects and note down

Third Identify relationships and also write down in your assignment

These initial points would work like a bonus!

Then finally using all these points create your final diagram!

Best of luck!

Most the discussion is about the function nobody is considering the attributes, maybe I am wrong but Zeta should have address, email etc. as attributes and exports-fruits as function earn money ?????????? I can't understand.

RSS

Looking For Something? Search Below

Latest Activity

saba zulfqar and Hania Khalid Shariff are now friends
1 hour ago
Muhammad Kasim replied to Sunny's discussion fin622 MCQS needed
2 hours ago
Profile IconMuhammad Kasim and shahzad Hussain joined Virtual University of Pakistan
4 hours ago
Mr Siren Head replied to Hania Khalid Shariff's discussion zero semester
6 hours ago
Hania Khalid Shariff and Huma Ahmad are now friends
16 hours ago
Huma Ahmad liked Hania Khalid Shariff's profile
17 hours ago
BBA(6th smes) left a comment for Rimsha mujahid
17 hours ago
Rimsha mujahid replied to + Audit Officer's discussion Accounts first smester
18 hours ago

VIP Member Badge & Others

How to Get This Badge at Your Profile DP

------------------------------------

Management: Admins ::: Moderators

Other Awards Badges List Moderators Group

© 2021   Created by + M.Tariq Malik.   Powered by

Promote Us  |  Report an Issue  |  Privacy Policy  |  Terms of Service