407052: GYM102697 023 Ping Pong Parachute
Description
You are currently working on Ping Pong Parachute for Science Olympiad and you want to test how high your rocket is going. The only problem is that your dog ate your altimeter, so now you can no longer use it to measure the rocket's height. Luckily you happen to have a PhD in physics and you can just calculate how high the rocket will go. Not only do you have a PhD, but you also have a speedometer, so you can see the speed of the rocket when it takes off(Initial velocity). The equation $$$V_f^2 = V_i^2 + 2ad$$$ to represent the height of the rocket.
$$$V_i$$$ = initial velocity
$$$V_f$$$ = speed of the rocket at its highest point (Hint: Its not moving)
a = acceleration due to gravity (-9.8 $$$m/s^2$$$)
d = height of the rocket
InputA double representing the initial velocity of the rocket
OutputThe predicted height of the rocket
ExampleInput7.78Output
3.0881836734693877