Question: C++ program Please. Write a program that calculates and displays the flight time, range, and maximum height achieved for a projectile launched from the ground.

C++ program Please. Write a program that calculates and displays the flightC++ program Please.

Write a program that calculates and displays the flight time, range, and maximum height achieved for a projectile launched from the ground. The user will be asked to enter, in order, the angle the projectile was launched at (in degrees) and the launch velocity in feet/sec. The program will display the flight time in seconds, the distance traveled in feet, and the maximum height achieved in feet. Create named constants for both P and gravity. Calculate PI by finding the acos (arccosine) of -1 . Use 32.17405 for the gravitational constant. Both constants should be of type double. You will need to convert the angle entered from degrees to radians, because the trigonometric functions expect arguments in radians. Use the fact that there are Pl/180 radians per degree to do the conversion. You will need to calculate both the horizontal component (Vh) and the vertical component (Vv) of the entered velocity (V) using the equations below. Note is the angle at launch in radians. Vh=Vcosine() vv=Vsine() The flight time (t) in seconds is calculated using the formula below. Where g is the gravitational constant. t=2.0vv/g The range (r) or distance traveled in feet is calculated using the formula below. r=2.0VhVv/g Calculate the maximum height achieved hmax using the formula below: hmax=(Vv)(Vv)/(2.0g) Use double variables to store all inputs and the results of each calculation

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!