Finding Age on Different Planets When you say you are 18 years old, you are really saying that the earth has circled the sun 18 times. Since other planets take fewer or more days than earth to travel around the sun, your age would be different on other planets. You can compute how old you are on other planets by the formula: y = (x * 365) / d Where x is the age on the earth, y is the age on planet Y, and d is the number of earth days the planet Y takes to travel around the sun.
Develop a Java program for this problem where the user inputs an earth age and the program will then display the age on Mercury, Venus, Jupiter, and Saturn. The values for d are listed in the table. Planet d = Approximate Number of Earth Days for This Planet to Travel Around the Sun Mercury 88 Venus 225 Jupiter 4380 Saturn 10767
Please remember to include the needed comments at the top of your .java file which will identify this assignment.
Hand in: 1. Email .java file by 6pm, November 16 2. Printed copy of your UML Class Diagram 3. Printed copy of your working source code