Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

using visual Basic program image text in transcribed
image text in transcribed
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

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_2

Step: 3

blur-text-image_3

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

Advances In Spatial And Temporal Databases 11th International Symposium Sstd 2009 Aalborg Denmark July 8 10 2009 Proceedings Lncs 5644

Authors: Nikos Mamoulis ,Thomas Seidl ,Kristian Torp ,Ira Assent

2009th Edition

3642029817, 978-3642029813

More Books

Students also viewed these Databases questions