Question: using visual Basic program Sultan Qaboos University Department of Compuer Science Introduction to Problem solving using Visual Basic.Net COMP2105: Home Work 2, Due Date: 23/3/19
Sultan Qaboos University Department of Compuer Science Introduction to Problem solving using Visual Basic.Net COMP2105: Home Work 2, Due Date: 23/3/19 Write a program to provide information on the height of a ball thrown straight up into the air. The program should request as input the initial height (ho) in feet and the initial velocity, v feet per second. The height of the ball after t seconds is given by the formulae h-ho+ vt-16r Provide five option buttons as shown in the form to compute the following. 1. Write a function that determines the maximum height of the ball. Note: the ball will reach its maximum height after v/32 seconds. 2. Determine approximately when the ball will hit the ground Hint: calculate the height after every 0.1 second and observe when the height is no longer a positive number 3. Write a function to determine approximately when the begin to descend. Hint: Calculate the height after every 0.1 second and observe when the height is no longer greater than the previous height. 4. Write a Sub Procedure to display a table showing the height of the ball every quarter second for five seconds or untill it hits the ground 5. Quit. Initial Height n Initial Velocity in Feets/seconds hits the ground Display Table Quait Sample Run Weite your ld Initial Height in Initial Velocity in hits the ground time unt Bal Display Table Approximate time untl it hits the ground 0.00 Approximate time untl Ball starts descending0.00 Time Height Sample Run 2: Initial Height in s Initial Velocity n Feets/seconds time unta it hits the ground Desplay Table Approximate time untll it hits the ground2.30 0.100 8.240 13.760 0.700 20.960 21.960
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
