Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C++ Programming Windows Application Console Student Generated Problem Option 2.5 Option 2.5: Suppose Dave drops a watermelon off a high bridge and lets it fall

C++ Programming Windows Application Console

image text in transcribed

image text in transcribed

Student Generated Problem Option 2.5 Option 2.5: 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 d in meters fallen by the watermelon after t seconds is d 0.5 g* t where the acceleration of gravity 9.8 meters/second?. 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 0 until the value of t 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. Sample Run 1: Please input the time of fall in seconds: Please input the height of the bridge in meters: 100 Time Falling (seconds Distance Fallen (meters) 4.9 19.6

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Development For Dummies

Authors: Allen G. Taylor

1st Edition

978-0764507526

More Books

Students also viewed these Databases questions

Question

Describe customized benefit plans.

Answered: 1 week ago

Question

1. Identify what positions are included in the plan.

Answered: 1 week ago

Question

2. Identify the employees who are included in the plan.

Answered: 1 week ago

Question

7. Discuss the implications of a skill-based pay plan for training.

Answered: 1 week ago