.... How to Find Your Subject Study Group & Join ....   .... Find Your Subject Study Group & Join ....  

We are here with you hands in hands to facilitate your learning & don't appreciate the idea of copying or replicating solutions. Read More>>

Study Groups By Subject code Wise (Click Below on your university link & Join Your Subject Group)

[ + VU Study Groups Subject Code Wise ]  [ + COMSATS Virtual Campus Study Groups Subject Code Wise ]

Looking For Something at vustudents.ning.com?Search Here

Assignment No. 02 SEMESTER Fall 2016 CS304- Object Oriented Programming Total Marks: 20 Due Date: 01 /12/2016

Assignment No. 02
SEMESTER Fall 2016
CS304- Object Oriented Programming Total Marks: 20
Due Date: 01 /12/2016

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.

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

For any query about the assignment, contact at CS304@vu.edu.pk
Objective
The objective of this assignment is:
o 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
GOOD LUCK!
Marks: 20

Problem Statement:
In continuation of Assignment No. 1, we have the following part of class diagram showing composition relationship:

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.
See the sample output to view the messages you need to print in constructors of all classes. In case of parameterize constructors, you can select any of data member(s) according to the type of constructor.

Class Name Attribute Name Attribute Data Type Functions
Galaxy
Size Integer -Default constructor
-Getters and Setters
Mass Double
Age Integer
Star

Size Integer -Default constructor
-One parameter overloaded constructor()
-Getters and Setters
Mass Double
Age Integer
Planet

Size Integer -Default constructor
-Two parameters overloaded Constructor
-Getters and Setters
Mass Double
Velocity Double
Satellite

Size Integer -Default constructor()
-Three parameter overloaded Constructor
-Getters and Setters
Mass Double
Velocity Double
Table 1: Classes


Sample Output:

Best of luck!

Lectures Covered: This assignment covers Lecture # 7-15
Deadline: Your assignment must be uploaded/submitted at or before December 1, 2016

This Content Originally Published by a member of VU Students.

Views: 6872

See Your Saved Posts Timeline

Replies to This Discussion

plz upload without error

can someone explain k ye values kidhr se aeen?

Star *s= new Star(54);
Planet *p= new Planet(54, 780.99);
Satellite *st= new Satellite(54, 780.4, 44.7);

Attachments:

same errors

wahab faheem send karo yaar halibhutta@gmail.com

error ha kya karoon samaj nahi arahi

Attachments:

error and error!

Refined and error free code.

A little modification will good for you people.

Attachments:

RSS

Forum Categorizes

Job's & Careers (Latest Jobs)

Admissions (Latest Admissons)

Scholarship (Latest Scholarships)

Internship (Latest Internships)

VU Study

Other Universities/Colleges/Schools Help

    ::::::::::: More Categorizes :::::::::::

Member of The Month

1. + ansa

rwp, Pakistan

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

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