Page 1 of 1

Please enter weight: 150 Your weight on Mercury is 57.0 Your weight on Venus is 136.5 Your weight on Mars is 57.0 Your w

Posted: Tue Jul 12, 2022 8:15 am
by answerhappygod
Please Enter Weight 150 Your Weight On Mercury Is 57 0 Your Weight On Venus Is 136 5 Your Weight On Mars Is 57 0 Your W 1
Please Enter Weight 150 Your Weight On Mercury Is 57 0 Your Weight On Venus Is 136 5 Your Weight On Mars Is 57 0 Your W 1 (221.14 KiB) Viewed 26 times
Create a class called "Planet" that stores the name of theplanet along with gravity differentials of each planet. Then,create a method calculate_spaceweight in the planet class that willtake a weight and return the weight will be on each of the planets.Create a list of planets then use a loop to calculate your weighton each planet. The output should look like the image above, andspace weight multipliers are provided below.
Please enter weight: 150 Your weight on Mercury is 57.0 Your weight on Venus is 136.5 Your weight on Mars is 57.0 Your weight on Jupiter is 351.0 Your weight on Saturn is 139.5 Your weight on Uranus is 138.0 Your weight on Neptune is 168.00000000000003 Your weight on Pluto is 93.0 As a reminder, here are the space weights: Mercury: 0.38 Venus: 0.91 Mars: 0.38 Jupiter: 2.34 Saturn: 0.93 Uranus: 0.92 Neptune: 1.12 Pluto: 0.62