Question: Write a C++ program that uses es user-defined functions to prompt the user to enter his or her weight (as an integer number), compute
Write a C++ program that uses es user-defined functions to prompt the user to enter his or her weight (as an integer number), compute the weight of the user on Jupiter, Pluto, and Saturn, and 3 print the results on the screen. The weight on the other planets can be computed by multiplying the user's weight by the planet's surface gravity. This program must include a combination of void and value-returning functions. You must include at least 3 void functions and 4 value-returning functions to do the following: 1. Prompt the user to enter his or her weight (as an integer number). Use an appropriate message to ask the user to enter the weight. 2. Compute the user's weight on Jupiter (Surface gravity = 2.34). 3. Compute the user's weight on Pluto (Surface gravity = 0.06). 4. Compute the user's weight on Saturn (Surface gravity = 1.06). 5. Print the user's weight on Jupiter. Use an appropriate message to indicate that the result is related to Jupiter's calculation.
Step by Step Solution
3.38 Rating (148 Votes )
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
