Question: Create a program that will calculate your weight on Mercury, Venus, Mars, and Earths moon. Update your previous program. Create independent return functions that calculate

Create a program that will calculate your weight on Mercury, Venus, Mars, and Earths moon.Update your previous program.

Create independent return functions that calculate each planetary body independently.

In main() create a menu that controls the program.

The program should bring receive input only in main() and pass values to other parts of the program.p[

Label the output so it is clear your weight on each independent planetary body.

If the user inputs a weight that is 0 or less the 0, the program should prompt the user Invalid Weight and stop execution.

Update your program to prompt the user for a second Integer input if the initial value for weight is valid. The input will correspond to the values the user wants to output.

(Use nested if statements and if else ladder to accomplish the task.)

Program should contain a menu.

Enter 1. For Mercury Weight

(After the user enters 1 the program will output weight converted to Mercury weight. )

Enter 2. For Venus Weight

(After the user enters 1 the program will output weight converted to Venus weight. )

Enter 3. For Mars Weight

Enter 4. For Earth's Moon weight

Enter 5: For all Conversions

Please be clear with comments and follow the guidelines throughly(return functions needed). It should be in c++. Thanks for your help

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!