Question: Write code in C++ to calculate maximum height of a ball after user inputs velocity and degree. 3. Create a main function that returns 0
Write code in C++ to calculate maximum height of a ball after user inputs velocity and degree.
3. Create a main function that returns 0 4. Include the iostream, iomanip, and cmath lasses in the header from the standard library. 5. The maximum height reached by a ball thrown with an initial velocity, v, in meters per section, at an angle, theta, and given by this formula: height (1/2 vA2 sin(theta)A2/9.8. Define float variable:s 6. Write code to request input values from the user in mph and degrees. 7. Calculate the height in ft using the formula above. Note, there are 5280 ft /mi and pi / 100 deg. 8. Print the inputs and outputs to the screern 9 Write code so that the program pauses after displaying text
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
