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)
CS304- Object Oriented Programming

Total Marks: 20

Due Date : 02-05-2014


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


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



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. 


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

      domain knowledge.


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

Replies to This Discussion

can u say this in easy words.. :o

too much confused .. krna kya hy iska..????

what is mean by uml?

   Unified Modeling language (UML) is a standardized modeling language enabling developers to specify, visualize, construct and document artifacts(an object made by a human being) of a software system. Thus, UML makes these artifacts scalable, secure and robust in execution. UML is an important aspect involved in object-oriented software development. It uses graphic notation to create visual models of software systems.

Dear Sohail UML(Unified modeling language) means that Dear arshid UML is a modeling language e.g how we show a class, how we represent association(composition or aggregation) and other symbols which we use for making our class diagram...

so thx dear nadeem

use MS-Visio for this and there is one more online easy tool Gliffy

Search Gliffy from Google

Use Edraw max Software to make easy Entity Relationship Diagram...

Hello friends this is solution of assignment no 1 with .doc file check it and give me comments


Solution Of Problem Statement

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

Muhammad Adnan (MIT 2nd) thanks for sahring 


Looking For Something? Search Below

Latest Activity

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