Project 2 – Planetary Weights
Due: Thursday, June 9th
Introduction
You may remember from high school science that while mass stays constant, your weight is actually dependent on your mass multiplied how strong the gravitational pull of the planet is. So if you were to travel to different planets, your weight would change. In your first programming project, you are asked to compute just how much someone would weigh on the other planets in our solar system.
Background Knowledge
Here is the table of relative gravitational strength as compared to earth:
Planet |
Relative Strength |
Mercury |
0.38 |
Venus |
0.91 |
Mars |
0.38 |
Jupiter |
2.54 |
Saturn |
1.08 |
Uranus |
0.91 |
Neptune |
1.19 |
Pluto |
0.06 |
What you need to do
Your task is to write a program which:
Example
Welcome to the planetary weight converter!
Please enter the weight you’d like to convert: 100
Here is your weight on other planets:
Mercury 38 lbs
Venus 91 lbs
The Moon 16 lbs
Mars 38 lbs
Jupiter 254 lbs
Saturn 108 lbs
Uranus 91 lbs
Neptune 119 lbs
Pluto 6 lbs
Submission
Submission guidelines will be handed out next week separately.
Requirements/Advice/Hints