Question: Write a visual basic program te a program to provide information on the height of a ball thrown straight up into the air. Th 3.
te a program to provide information on the height of a ball thrown straight up into the air. Th 3. Wri e program should request as input the initial height, h feet, and the initial velocity, teet per second. The height of the ball (in feet) after t seconds is given by the formula tl6c feet. The five options to be provided by buttons are as follows: (a) Determine the maximum height of the ball. Note: The ball will reach its maximum height after /32 seconds. (b) De termine 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) Determine approximately when the ball will begin to descend. Hint: Calculate the height after every.1 second and observe when the height is no longer greater than the previous height. (d) Display a table showing the height of the ball every quarter second for five seconds or until it hits the ground. See Fig. 6.14. (e) Quit. Height 5 feet) initial Velocty 34 feet / second) Time Urtil Ball Starts . 75 2.00 .25 .50 8.0 23.0 20.0 15 2.00 9.0
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
