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

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

www.bit.ly/vucodes

+ Link For Assignments, GDBs & Online Quizzes Solution

www.bit.ly/papersvu

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


Dear Students! Share your Assignments / GDBs / Quizzes files as you receive in your LMS, So it can be discussed/solved timely. Add Discussion

How to Add New Discussion in Study Group ? Step By Step Guide Click 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

+ How to Follow the New Added Discussions at Your Mail Address?

+ How to Join Subject Study Groups & Get Helping Material?

+ How to become Top Reputation, Angels, Intellectual, Featured Members & Moderators?

+ VU Students Reserves The Right to Delete Your Profile, If?


See Your Saved Posts Timeline

Views: 7083

.

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

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

Latest Activity

+ ! ! ! ! Mehαr Mαh꧂ replied to +¢αяєℓєѕѕ gιяℓ's discussion Shadi Ho Rhi Hai Alhamdulillah.......... (^__^)!
2 minutes ago
UMER UMER posted a discussion
3 minutes ago
+ ! ! ! ! Mehαr Mαh꧂ replied to +***piya o ry piya***+'s discussion eng201
4 minutes ago
UMER UMER added a discussion to the group MGT101 Financial Accounting
8 minutes ago
Profile IconUMER UMER and Nisha Khan joined + M.Tariq Malik's group
10 minutes ago
Profile IconRizwan, Amna Imran, nudrat akram and 23 more joined Virtual University of Pakistan
10 minutes ago
UMER UMER liked + M.Tariq Malik's group MGT101 Financial Accounting
11 minutes ago
+ ! ! ! ! Mehαr Mαh꧂ liked + M.Tariq Malik's discussion ENG201 Business and Technical English Writing Assignment No 01 Fall 2019 Solution & Discussion
12 minutes ago
Amna Imran liked + M.Tariq Malik's group MGT603 Strategic Management
16 minutes ago
Amna Imran liked + M.Tariq Malik's group MGT603 Strategic Management
16 minutes ago
+ ! ! ! ! Mehαr Mαh꧂ replied to +***piya o ry piya***+'s discussion eng201
22 minutes ago
+ ! ! ! ! Mehαr Mαh꧂ liked +***piya o ry piya***+'s discussion eng201
23 minutes ago
+ ! ! ! ! Mehαr Mαh꧂ liked +¢αяєℓєѕѕ gιяℓ's discussion How to Add New Discussion in Study Group ? Step By Step Guide Click Here.
44 minutes ago
+ ! ! ! ! Mehαr Mαh꧂ liked +!!!Dua Pathani's discussion Kashmir Committee Punjab via Kashmir Committee Punjab
44 minutes ago
+ ! ! ! ! Mehαr Mαh꧂ liked +¢αяєℓєѕѕ gιяℓ's discussion Kya Mien Writer Ban Sakti Hoon :-P
44 minutes ago
+ ! ! ! ! Mehαr Mαh꧂ liked +¢αяєℓєѕѕ gιяℓ's discussion Shadi Ho Rhi Hai Alhamdulillah.......... (^__^)!
44 minutes ago
+ ! ! ! ! Mehαr Mαh꧂ liked Syeda's discussion MTH601 - Operations Research solved....
44 minutes ago
Hashim replied to + M.Tariq Malik's discussion MTH601 Assignment No 01 Fall 2019 Solution & Discussion in the group MTH601 Operations Research
50 minutes ago
Profile IconHashim and Aakash Ahmed joined + M.Tariq Malik's group
50 minutes ago
Qaisar Hashmi liked + ! ! ! ! ! ! ReBeL's blog post + Beginning +
1 hour ago

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

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