www.vustudents.ning.com

We non-commercial site working hard since 2009 to facilitate learning Read More. We can't keep up without your support. Donate.

# Assignment ! CS 304

Views: 17729

### Replies to This Discussion

+ AiM thanks for sharing

Why we are using comet class?

Common attributes in super class: Name, distance and mass and functions will be getName() , getMass(), getDistance()........am i right?

By SMART

The galaxy is composed of the starssatellite and planets etc. In earth’s home galaxy, the solar system is comprised of sun (average star) and objects that orbits around it. Following are the 8 largest objects (planets):
1=MERCURY:
ATTRIBUETES OF MERCURY ARE:
Color of mercury is dark gray.
Temperature of mercury is 332 in degrees and in Fahrenheit is 167 degree Celsius.
size of mercury is 2,44okilometer.
2=FUNCTIONS OF MERCURY ARE:
Its rotation around sun is 87.97.
Diameter of mercury is 4,879km.
2=VENIUS:
ATTRIBUETES OF VENIUS ARE:.
2) TEMPERATURE:
Temperature of venius is 864 in degrees and in Fahrenheit is 462 degree Celsius.
Size of venius is 6,052km.
Its distance from sun is 108.2 million km and distance from earth is 261 million km.
2=FUNCTIONS OF VENIUS ARE:
Its rotation around sun is 87.97.
Diameter of mercury is 4,834km.

3=EARTH:

ATTRIBUETES OF EARTH ARE:
Color of earth is blue.
Its shape is oblate spheroid.
Its distance from sun is 149.6 million km and distance from Centre of earth is 3,959miles.
2=FUNCTIONS OF EARTH ARE:
Its rotation of earth around sun is 92.96million miles.
Diameter of earth is 940miles kilometer.
Radius of earth is 149.60 million km.

4=MARS:

ATTRIBUETES OF MERCURY ARE:
3=size of mars is 3,390okilometer.
Its shape is oblate spheroid.
Its distance from sun is 225 million miles and distance from earth is 77 million km.
2=FUNCTIONS OF MARS ARE:
Its rotation around sun is 87.77.
Diameter of mercury is 8,879km.

5=JUPITER:

ATTRIBUETES OF JUPITER ARE:
3=size of Jupiter is 5,44okilometer.
Its shape is obligate spheroid.
Its distance from Jupiter is 563 million miles and distance from earth is 55 million km.
2=FUNCTIONS OF JUPITER ARE:
Its rotation around sun is 88.99.
Diameter of Jupiter is 9,879km.

6=SATURN:

ATTRIBUETES OF SATURN ARE:
3=size of Saturn is 7,44okilometer.
Its shape is hexagonal.
Its distance from sun is 63 million miles and distance from earth is 97 million km.
2=FUNCTIONS OF SATURN ARE:
Its rotation around sun is 87.97.
Diameter of Saturn is 4,879km.
7=URANUS:

ATTRIBUETES OF URANUS ARE:
size of Uranus is 9,84okilometer.
Its shape is oval.
Its distance from sun is 55 million miles and distance from earth is 44 million km.
2=FUNCTIONS OF URANUS ARE:
Its rotation around sun is 98.34.
Diameter of Uranus is 8,879km.
8=NEPTUNE:

ATTRIBUETES OF NEPTUNE ARE:
size of Neptune is 89,44okilometer.
Its shape is oval.
4) DISTANCE:
Its distance from sun is 66 million miles and distance from earth is 33 million km.
2=FUNCTIONS OF NEPTUNE ARE:
Its rotation around sun is 99.77.
Diameter of Neptune is 98,879km.

plz share the final file
as im trying to solve scenario but a bit confused

You have to use UML conventions to draw class diagram. The same has been followed in video lectures as well.
what is this mean??? any one guide me please..UML conventions kia hy??

give me complete solution....... plz i am confuse

Planet
Pvt Char name;
Private float mass;
int distance;
int moons;
public Planet();
public void setName();
getname();
setmass();
getmass();
setmoons();
getmoons();
setdistance();
getdistance();
revolve();

Stars class
Stars
Char name;
Int diameter;
Char gases[];
Setname();
Getname();
Setdiameter();
Getdiameter();
Setgases();
Getgases();
Shine();
Gasreaction();
Heat();

yh hai full solution

Attachments:

Thanks

1

2

3

4

5

## Latest Activity

4 hours ago
4 hours ago
+ M.Tariq Malik posted a discussion

### قرب کے نا وفا کے ہوتے ہیں - سارے جھگڑے انا کے ہوتے ہیں

4 hours ago
⭐ "Mannat"⭐✔️ posted a video

4 hours ago

4 hours ago

4 hours ago

4 hours ago

4 hours ago

## VIP Member Badge & Others

------------------------------------