Question: C++ help... 2 void functions must be used.. also the exponents must appear. Please validate as it says no negative launch velocitites. Sample output below.

C++ help... 2 void functions must be used.. also the exponents must appear. Please validate as it says no negative launch velocitites. Sample output below. include comments.

C++ help... 2 void functions must be used.. also the exponents must

SAMPLE OUTPUT:

Enter launch velocity in mph =>7

Jumper will return

Another input?, press 1=>1

Enter launch velocity in mph =>3400

Jumper would return if the mass was at least 1.99675e+22

Another input?, press 1=>1

Enter launch velocity in mph =>540

Jumper will return

Another input?, press 1=>2

The average person can jump off the ground with a launch velocity of 7 mph without fear of leaving the planet. However, if an astronaut jumps with this launch velocity while standing on Halley's Comet, will the astronaut ever come back down? Create a program that allows the user to input a launch velocity (in mph) from the surface of Halley's Comet and determine whether a jumper will return to the surface. lf not, the program should calculate how much more massive the comet must be in order to return the jumper to the surface. Allow the user to continue input as long as he/she wishes no negative launch velocities allowed). Exponential form is acceptable. Use at least two (2) void functions. Escape velocity is SQRT (2 G* M R) use cmath for sqrt G gravitational constant 6.67 10 11 N melk M mass of of Halley's Comet 1.3 1022 kg R Halley's Comet radius 1.153 106 m Hint: The following constants can be used in your program const double G 6.67E-11 const double MASS 1.3E22 const double RADIUS F 1.153E6

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!