Use Dbpm Class Construction Format Create Classes Attributes Methods Modify Universe Progr Q37075040

Use the DBPM Class Construction Format to create all ofthe classes, attributes and methods.

MODIFY THE UNIVERSE PROGRAM: Universe.java

Modify the existing program to expand the currentuniverse.
A. Add one Star called Sun. Specify the Name, Size and Distancefrom the Sun.
B. Two planets called Earth (name=”Blue Planet”) with one moon(called blueMoon),
and Mars (name=”Red Planet”) with two moons (Deimus andPhobos).
-For each planet specify the name, size and distance from theSun.
-For each moon specify the name, size and distance from itsplanet.

Comment out all other program code and verify that steps A and Bwill compile without error.

1. Follow the naming patterns used by DBPM for all

OR
OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.