Three balls are dropped from onto a hard floor: a bouncy one (), an average one () and a dull one (). You will make the program find the height after each bounce, the bounce at which the average ball first rises less than , and how far it travels in all.
The idea. Each bounce multiplies the speed by , so it multiplies the height by : .
Your tasks.
heights(e) return the heights after bounces to .Have you tried it?
Do the tasks in the editor first, and run the checker after each one. Its hints help when a check fails. When you are ready, compare your code with this solution.
Log in to join the discussion.
Loading…