Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 aboveStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started