Question
Exercise 4 Projectile Motion General Write a program to provide information on the height of a ball thrown straight up in the air. The program
Exercise 4
Projectile Motion
General
Write a program to provide information on the height of a ball thrown straight up in the air. The program should request as input the initial height h feet and the initial velocity v feet per second. The height of the ball in feet after t seconds is given by the formula: h +vt 16t2. Note: this exercise is basically the same project described on page 286 of your text.
Button Controls
Determine Maximum Height Calculates maximum height of the ball which occurs after v/32 seconds.
Determine When Ball Hits the Ground Calculate (approximately) when the ball will hit the ground. Hint: calculate the height after every .1 seconds and determine when the height is no longer a positive number.
Display Table Display a table showing the height of the ball every quarter of a second for 5 seconds or until it hits the ground.
Exit Close the program.
Additional Requirements
You must use a separate function to calculate the height of the ball.
I need to build this program using visual basic language please help me if you can
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