Our weight on different planets in the solar system will differ due to the varying size and mass of each of the planets. Write a C program, weight.c, to compute the weight of a 200 pound person on the following planets, based on the data below:

Planet Percent of Earth Weight
Mercury 37.8%
Venus 90.7%
Mars 37.7%
Jupiter 236.0%
Saturn 91.6%
Uranus 88.9%
Neptune 112.0%

The program should generate the following outputs:

Mercury: xxx.x
Venus: xxx.x
Mars: xxx.x
Jupiter: xxx.x
Saturn: xxx.x
Uranus: xxx.x
Neptune: xxx.x

Your program should right-justify the planet names and present the output to one decimal place as shown above. Be sure to line up the decimal points. Use the following guidelines to develop your program:

Declare your variables with appropriate data types.

Assign values to your variables.

Perform your calculations.

Generate appropriate output.
Academic Honesty!
It is not our intention to break the school's academic policy. Posted solutions are meant to be used as a reference and should not be submitted as is. We are not held liable for any misuse of the solutions. Please see the frequently asked questions page for further questions and inquiries.
Kindly complete the form. Please provide a valid email address and we will get back to you within 24 hours. Payment is through PayPal, Buy me a Coffee or Cryptocurrency. We are a nonprofit organization however we need funds to keep this organization operating and to be able to complete our research and development projects.