classroom project
-
Need help if possible with class project need to write program in vb.net for school the program should provide the height of a ball thrown straight up into the air. the program should request the initail height, hfeet, an dthe initail velocity, v feet per second, as input. The four 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 v/32 seconds. b)Determine approx 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. Any help would be greatly appreciated. Thanks
-
Need help if possible with class project need to write program in vb.net for school the program should provide the height of a ball thrown straight up into the air. the program should request the initail height, hfeet, an dthe initail velocity, v feet per second, as input. The four 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 v/32 seconds. b)Determine approx 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. Any help would be greatly appreciated. Thanks
Why, oh why, are they teaching VB.net in schools ? We're happy to help, but not to do your homework. First, you try. That's the point of the exercise. The world does not need this program, but you need to try and write it in order to solidify what you should have learned in class. Christian Graus - Microsoft MVP - C++
-
Why, oh why, are they teaching VB.net in schools ? We're happy to help, but not to do your homework. First, you try. That's the point of the exercise. The world does not need this program, but you need to try and write it in order to solidify what you should have learned in class. Christian Graus - Microsoft MVP - C++
-
No problem I'll post what I have so far. I am having a problem getting the fuction to work properly. Thanks for the encouragement. I only need help not the solution. Thanks again
This is what I ahve so far. Private Sub btnDisplay_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnDisplay.Click Dim h As Double 'h is height Dim v As Double 'v is velocity Dim t As Double 't is time Dim ballHt As Double h = CDbl(txtIniHeight.Text) v = CDbl(txtIniVelocity.Text) t = 0 CalcBallHt(h, v, t, ballHt) lstResults.Items.Clear() lstResults.Items.Add(ballHt) End Sub Function CalcBallHt(ByRef h As Double, ByRef v As Double, _ ByRef t As Double, ByRef ballHt As Double) As Double ballHt = h + v * t - 16 * t * t Return ballHt End Function I am having a problem getting the function to work I am sure it has something to do with the variable time but i'm not sure how to resolve this. Please Help Thanks
-
This is what I ahve so far. Private Sub btnDisplay_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnDisplay.Click Dim h As Double 'h is height Dim v As Double 'v is velocity Dim t As Double 't is time Dim ballHt As Double h = CDbl(txtIniHeight.Text) v = CDbl(txtIniVelocity.Text) t = 0 CalcBallHt(h, v, t, ballHt) lstResults.Items.Clear() lstResults.Items.Add(ballHt) End Sub Function CalcBallHt(ByRef h As Double, ByRef v As Double, _ ByRef t As Double, ByRef ballHt As Double) As Double ballHt = h + v * t - 16 * t * t Return ballHt End Function I am having a problem getting the function to work I am sure it has something to do with the variable time but i'm not sure how to resolve this. Please Help Thanks
hello Now WHat u want Exactly Your Programe work Properly as per ur requiste for example If u give h=2 and v= 2 then it will return 2 How BallHt= 2+2*0-16*0*0 remains 2*0-0 remains 2 it will execute in BODMAS order I dont know waht result exactly u want,if u get wrong result change ur formula with brackets the first part u want to execute Ishak
-
Why, oh why, are they teaching VB.net in schools ? We're happy to help, but not to do your homework. First, you try. That's the point of the exercise. The world does not need this program, but you need to try and write it in order to solidify what you should have learned in class. Christian Graus - Microsoft MVP - C++
how to connect crystal reporet in vb vikash ranjan