Andrew K.

asked • 03/15/21

UUUUnit_5_Lab_1

submit on .py file, follow the rubric, standard header applies.

 

A standard science experiment is to drop a ball and see how high it

bounces. Once the “bounciness” of the ball has been determined, the

ratio gives a bounciness index. For example, if a ball dropped from a

height of 10 feet bounces 6 feet high, the index is 0.6 and the total distance

traveled by the ball is 16 feet after one bounce. If the ball were to

continue bouncing, the distance after two bounces would be 10 ft + 6 ft +

6 ft + 3.6 ft = 25.6 ft. Note that the distance traveled for each successive

bounce is the distance to the floor plus 0.6 of that distance as the ball

comes back up. Write a program that lets the user enter the initial height

of the ball, the bounciness index and the number of times the ball is allowed

 to continue bouncing. Output should be in tabular format showing the bounce number,

the distance the ball bounced and total distance traveled by the ball.

 

Eg:

Bounce number               bounce ft            distance traveled.

1                                             22.50                      22.50

2                                             18.60                      41.10


1 Expert Answer

By:

Patrick B. answered • 03/16/21

Tutor
4.7 (31)

Math and computer tutor/teacher

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.