Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. classroom project

classroom project

Scheduled Pinned Locked Moved Visual Basic
csharpadobehelp
6 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    clear27
    wrote on last edited by
    #1

    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

    C 1 Reply Last reply
    0
    • C clear27

      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

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      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++

      C V 2 Replies Last reply
      0
      • C Christian Graus

        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++

        C Offline
        C Offline
        clear27
        wrote on last edited by
        #3

        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

        C 1 Reply Last reply
        0
        • C clear27

          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

          C Offline
          C Offline
          clear27
          wrote on last edited by
          #4

          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

          M 1 Reply Last reply
          0
          • C clear27

            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

            M Offline
            M Offline
            Mohamed Ishak
            wrote on last edited by
            #5

            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

            1 Reply Last reply
            0
            • C Christian Graus

              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++

              V Offline
              V Offline
              Vikash Ranjan
              wrote on last edited by
              #6

              how to connect crystal reporet in vb vikash ranjan

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups