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

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

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

Post 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 25 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
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply