Question: 10. Write a program that reads the initial height from which a ball is thrown and displays after how many bounces the ball reaches a
10. Write a program that reads the initial height from which a ball is thrown and displays after how many bounces the ball reaches a height less than of the initial height. The program should prompt the user to enter the decrease height ratio (%). For example, the input value 0.1 means that each time the ball hits the ground, it bounces up to a height 10% less than the previous one.
Using C please write a program for the above question. Commenting your code is always appreciated.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
