Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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 in meters fallen by the watermelon after seconds is where the acceleration of gravity meters second
Write a program that asks the user to input the number of seconds that the watermelon falls and the height of the bridge above the water. The program should then calculate the distance fallen for each second from until the value of input by the user. If the total distance fallen is greater than the height of the bridge, then the program should tell the user that the distance fallen is not valid. Output distance with two digits following the decimal point. Each output line shall end with a newline.
Sample Run :
Please input the time of fall in seconds:
Please input the height of the bridge in meters:
Time Falling seconds Distance Fallen meters
Step 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