Question: Potential energy is given by . Read object _ mass, planet _ gravity, and object _ height from input as floats, respectively. Then, compute potential

Potential energy is given by . Read object_mass, planet_gravity, and object_height from input as floats, respectively. Then, compute potential_energy using the formula. Finally, output 'Potential energy is ' followed by the value of potential_energy to five digits after the decimal point.
Ex: If the input is:
7.0
5.0
4.0
then the output is:
Potential energy is 140.00000

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!