Question: Problem 2: When a particular rubber ball is dropped from a given height (in meters), its impact speed (in meters/second) when it hits the ground
Problem 2: When a particular rubber ball is dropped from a given height (in meters), its impact speed (in meters/second) when it hits the ground is given by the formula: speed S = 2gh where g is the acceleration due to gravity and h is the height. The ball then rebounds to 2/3 the height from which it last fell. Using the formula, design, write and run a C++ program that will accept input values from the user at run time and display the impact speed of the first three bounces and the rebound height of each bounce. Test your program using an initial height of 18 m. Run your program twice, and compare the results for dropping the ball on Earth (g = 9.81 m/s2) and on the Moon (g = 1.67 m/s2). (Hint: In Step 2: Design a solution, use a Table to organize the solution before going to Step 3: Coding) Save this program as Module 3Proj2
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
