Write a program to provide information on the height of a ball thrown

straight up into the air. The program should request the initial height, h

feet, and the initial velocity,v feet per second, as input. The four options to

be provided by buttons are as follows:

(3) Determine the maximum height of the ball. Note: The ball will reach

its maximum height after v/32 seconds.

(b)

Determine approximately when the ball will hit the ground. Hint:

Calculate the height after every . 1 second and observe when the height

is no longer a positive number.

(c) Display a table showing the height of the ball every quarter second for

five seconds or until it hits the ground.

(d) Quit.

The formula for the height of the ball after t seconds, h + v*t — 16*t*t should

be specified in a user-defined function. (Test the program with v = 148 and h = 0.

This velocity is approximately the top speed clocked for a ball thrown by a proffesional

baseball pitcher.

It is homework help. I honestly do not know where to begin after designing the form. Any help would be great. I figured I would try and get some sort of help if someone was bored and willing.

Thanks!

This page should provide you with the necessary equations. Also, the acceleration of gravity is approx. 32.174 ft/s2

Ask Your Question

Weekly Poll

Do you think ride and car sharing are the future of transportation?

Discuss in The Lounge

Poll History