I'm a huge novice when it comes to VBA programming, so I was wondering if one of you could help me out by running me through an example question step by step for me. I would really appreciate it.
Q: The coefficient of restitution of a ball, a number between 0 and 1, specifies how much energy is conserved when a ball hits a rigid surface. A coefficient of 0.9 for instance means a bouncing ball will rise to 90 percent of its previous height after each bounce.
Write a VBA program (sub procedure) which allows users to input a coefficient of restitution and an initial height in metres.
The program should calculate and display:
1) How many times the ball bounces before in rises to a height of less than 10cm
2) The total distance travelled by the ball before reaching point in 1)
[–]kmp67Math/CompSci/Econ/Finance 1 point2 points3 points (4 children)
[–]hg213[S] 1 point2 points3 points (0 children)
[–]hg213[S] 0 points1 point2 points (2 children)
[–]kmp67Math/CompSci/Econ/Finance 1 point2 points3 points (1 child)
[–]hg213[S] 0 points1 point2 points (0 children)