We have been working very hard since 2009 to facilitate in your learning Read More. We can't keep up without your support. Donate Now.

www.bit.ly/vucodes

+ Link For Assignments, GDBs & Online Quizzes Solution

www.bit.ly/papersvu

+ Link For Past Papers, Solved MCQs, Short Notes & More

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


+ http://bit.ly/vucodes (Link for Assignments, GDBs & Online Quizzes Solution)

+ http://bit.ly/papersvu (Link for Past Papers, Solved MCQs, Short Notes & More)

+ Click Here to Search (Looking For something at vustudents.ning.com?)

+ Click Here To Join (Our facebook study Group)


Views: 7145

Replies to This Discussion

Es my eror a raha ha bro

install latest dev c++

arey yaar jb output short codes k saath aa sakti thi to itni lengthy coding kyn karein ap logo ki coding bohot lengthy hai

to wahab faheem ap koi idea da do in sab ko 

please koe correct Solution Upload kr dy

Ha g e bat ha  seher rajput

ok but yahan nahi de sakta email inbox kr do apna apna de doonga

sajju4476@gmail.com plz mujhy solution send karo

usmanfarid1994@gmail.com plz send me complete soluion

imransajid701@gmail.com
please send the idea on this mail.. please..
Wahab faheem

RSS

Looking For Something? Search Here

Latest Activity

Mani Siddiqui BS VIII posted a discussion
6 minutes ago
Mani Siddiqui BS VIII posted a status
"مجھ سے ملتا ہے پر جسم کی سرحد پار نہیں کرتا اس کا مطلب تو بھی مجھ سے سچا پیار نہیں کرتا"
11 minutes ago
Mani Siddiqui BS VIII posted a status
"چند سانسوں کا کھیل ہے باقی پھر تو آپ کو رونا ہی ہے ۔۔۔۔"
40 minutes ago
Mani Siddiqui BS VIII posted a status
"جھیل سیف الملوک دیکھی ہے ؟؟ وہ لڑکی اس سے بھی خوبصورت ہے"
42 minutes ago
Honey Chaudhary joined +M.Tariq Malik's group
55 minutes ago
Honey Chaudhary joined +M.Tariq Malik's group
59 minutes ago
Honey Chaudhary joined +M.Tariq Malik's group
59 minutes ago
Honey Chaudhary joined +M.Tariq Malik's group
1 hour ago

HELP SUPPORT

This is a member-supported website. Your contribution is greatly appreciated!

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

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

.