(Modify)
a. Modify the program you wrote for Exercise to provide the mass of a person as an output, given his or her weight as an input to the program. Use your program to determine the mass of a person who weighs 140 lbf on Earth.
b. Modify the program written for Exercise a to also output the person’s weight on Mars and the moon. The pull of gravity on Mars is 12.54 ft/sec2 = 3.728 m/s2, and on the moon is 5.33 ft/sec2 = 1.625 m/s2.
Exercise:
(Physics)
a. The weight of an object on Earth is a measurement of the downward force on the object caused by Earth’s gravity. The formula for this force is determined by using Newton’s Second Law:
F = M . Ae
F is the object’s weight.
M is the object’s mass.
Ae is the acceleration caused by Earth’s gravity (32.2 ft/sec2 = 9.82 m/s2).
Given this information, design, write, compile, and run a C++ program to calculate the weight in lbf of a person having a mass of 4 lbm. Verify the result produced by your program with a hand calculation.
b. After verifying that your program is working correctly, use it to determine the weight, on Earth, of a person having a mass of 3.2 lbm.
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.