Question: Write a code that solves the following problem: Suppose Dave drops a watermelon off a high bridge and lets it fall until it hits the
Write a code that solves the following problem: Suppose Dave drops a watermelon off a high bridge and lets it fall until it hits the water. If we neglect air resistance, then the distance din meters fallen by the watermelon after t seconds is d=0,5*g*t? where the acceleration of gravity g -9.8 meters/second 2 Write a program that asks the user to input the number of seconds that the watermelon falls and the height h of the bridge above the water. The program should then calculate the distance fallen for each second from t - until the value of t input by the user. If the rotal distance falten is greater than the height of the bridge, then the program should tell the user that the distance fallen is not valid, Upload your.cpp file to answer 10% Comments 40 Correct use of variables operations, structures 30 Correct and understandable output 20 Correct lution to instructions 0 11441 AM
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
