cs304-Object Oriented Programming | Assignment 2 Solution Spring 2018 | Due date: 05 june, 2018

CS304-OOP Assignment No 2 Spring 2018 | Due Date: 05 June, 2018

Dear Students, CS304-Object Oriented Programming Assignment no 2 Solution has been uploaded for Semester Spring 2018.
Due date: 05 June, 2018
Total Marks: 20
Lectures covered: 10-18

CS304-OOP Assignment Instructions:

Please read the following instructions carefully before submitting assignment: It should be clear that your assignment will not get any credit if: 

  • The assignment is submitted after due date.  
  • The assignment is submitted via email.  
  • The assignment is copied from Internet or from any other student.  
  • The submitted assignment does not open or file is corrupt.  
  • It is in some format other than .cpp.

Note: You are supposed to submit your assignment in .cpp format. Any other formats like scan images, PDF, zip, doc, rar and bmp etc will not be accepted. All types of plagiarism are strictly prohibited. 

CS304-OOP Objective of Assignment

The objective of this assignment is:

  • To give you the idea of practical implementation of some concepts like, definition of classes, Data members, member functions, Constructors, Composition etc. 

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

CS304-OOP Assignment 2 Problem Statement

We have the following part of class diagram showing composition relationship:

CS304-OOP Assignment 2 Class Diagram


You are required to implement above class diagram (complete program) in C++ with all data members, constructors, member functions and concept (composition) given in the class diagram/table 1.

Class Name
Functions
ABC Company
-Default constructor
HomePage
-Default constructor
Items
-Default constructor
MenPage
-Default constructor
WomenPage
-Default constructor
Kidspage
-Default constructor








                               Table1: Classes

CS304-OOP Assignment No 2 Sample Output

Note: See the sample output to view the messages you need to print in constructors of all classes.

CS304-Sample Output

CS304-OOP Assignment No 2 Solution Spring 2018

CS304-OOP Assignment 2 Solution File Download

Download the solution file from the following link:

CS304-Assignment 2 Solution Spring 2018.cpp

Leave a Comment

Your email address will not be published.

CS304-object oriented programming | Assignment no. 1 Solution | Spring 2018 | Due date: 15 may, 2018

Assignment No. 01
Semester: Spring 2018
Object Oriented Programming – CS304

Total Marks: 20

Due Date: 15 May 2018 

Objectives:
To get a hands on experience in creating Object Model (Class Diagram) of real world problems

Instructions:
Please read the following instructions carefully before submitting assignment:
It should be clear that your assignment will not get any credit if:
§ The assignment is submitted after due date.
§ The assignment is submitted via email.
§ The assignment is copied from Internet or from any other student.
§ The submitted assignment does not open or file is corrupt.
§ It is in some format other than .doc (MS Word Document).

Note: All types of plagiarism are strictly prohibited.

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

Case Study 
Suppose ABC is a car rental company. To facilitate all type of customers the company bought different types of vehicles like car, coaster and bus for their drivers. These vehicles are composed of best engines and tires. Company will also keep these vehicles in separate garages to protect it from any damage.

Q No 1: Find relevant objects from the case study. 5 Marks 

Q No 2: Draw an Object Model (class diagram) for the given case study. 15 Marks 

Important things to consider:
1. Object Model must clearly show the relationship between main objects.
2. Object state and behavior is not required to be mentioned at this point.
3. You have to use UML conventions to draw class diagram. The same has been followed in video lectures as well.
4. 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.

Note: You can use any drawing tool such as MS Visio, MS Paint or online drawing tool etc. but you have to paste your diagram in MS Word (.doc) file and submit this file on LMS. Images submitted as solution files will not be accepted.

LIKE, SHARE AND SUBSCRIBE

Leave a Comment

Your email address will not be published.