Question: please write in c++ with no loops make it very basic Write a program that calculates and displays the flight time, range, and maximum height

 please write in c++ with no loops make it very basic
please write in c++ with no loops make it very basic

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 teet. Create named constants for both PI and gravity Calculate P1 by finding the arccosine of -1 Use 32 17 toisthe gravitational constant. Both constants should be of type double You will need to convert the angle from degrees to radians, because the trigonometric functions expect arguments in radians Use the fact that there are 1/180 radians per degree to do the conversion You will need to calculate both the horizontal component (h) and the vertical component (W) of the entered velocity (V) using the equations below. Note 8 is the angle at launch in radians. Vh - V cosine (0) VVV sine (0) The flight time (t) in seconds is calculated using the formula below. Whereg is the gravitational constant t-2.0. Volg The range (t) or distance traveled in feet is calculated using the formula below. - 2.0 VhW / 9 The maximum height achieved hrax is calculated using the formula below: 1 . IV) (V) / 12.0 Use double variables to store all inputs and the results of each calculation Make sure that you include clear and explicit prompts for each input including the units expected Read one value at a time. Clearly label each output including the units

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!