Coefficient of a Restitution Hints

Posted on 16th Feb 2014 by admin

Hello. I was wondering if anyone can give me hints on how to write this program...

The coefficient of a restitution of a ball, a number between 0 and 1, specifiies how much energy is conserved when a ball hits a rigid surface. A coefficient of .9, for instance, means a bouncing ball will rise 90 percent of its previous height after each bounce. Write a program to input a coefficient of restitution and an intial hright in meters, and report how many times a ball bounces when dropped from its initial height before it rises to a height of less than 10 centimeters. Also report the total distance traveled by the ball before this point. The coefficients of restitution of a tennis ball, basketball, super ball, and softball are 0.7, 0.75, 0.9, and 0.3, respectively.

Other forums