Question: The program must prompt for the intial height S and the initial velocity V as floating numbers. The program should also calculate the number of
The program must prompt for the intial height S and the initial velocity V as floating numbers. The program should also calculate the number of seconds it takes for the projectile to hit the ground along with the maximum height achieved rounded to 2 decimal places.
The purpose of this programming project is to write a C++ program to calculate the effect of gravity on a projectile (i.e., an object) that is thrown, shot, or dropped. More specifically, the height of an object propelled directly upward from an initial height s_0 at an initial velocity v_0 is given by where v_0 is in feet/second and s_0 is in feet. The maximum height (at the vertex) can be found at the coordinates: Visually, you may view the height of the object over time by the following graph: you are to calculate how long it takes Using the quadratic equation the projectile to hit the ground, as defined by the zero, or x-intercept, of the equation (see above diagram). Additionally, you are to calculate the maximum height the object attains using the formula for the coordinates given above. The purpose of this programming project is to write a C++ program to calculate the effect of gravity on a projectile (i.e., an object) that is thrown, shot, or dropped. More specifically, the height of an object propelled directly upward from an initial height s_0 at an initial velocity v_0 is given by where v_0 is in feet/second and s_0 is in feet. The maximum height (at the vertex) can be found at the coordinates: Visually, you may view the height of the object over time by the following graph: you are to calculate how long it takes Using the quadratic equation the projectile to hit the ground, as defined by the zero, or x-intercept, of the equation (see above diagram). Additionally, you are to calculate the maximum height the object attains using the formula for the coordinates given above
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
