Question
ANACONDA JUPYTER NOTEBOOK PYTHON 3 In this assignment you will calculate how far a ball will travel. The distance travel by a ball as it
ANACONDA JUPYTER NOTEBOOK PYTHON 3
In this assignment you will calculate how far a ball will travel. The distance travel by a ball as it bounces can be measured as a percentage of the height form which the ball was dropped. We will call this the bounceIndex. For example a ball dropped from a height of 10 feet that bounces 6 feet high has an index of 60% (.60). A ball with a bounceIndex of .6 that is dropped from a height of 10 feet will have traveled 25.6 feet in two bounced (10 + 6 + 6 + 2.6).
Write a program that will ask the user to input the height for which the ball is dropped, the number of bounces and the bounceIndex. Test that the values entered are >= 0, trap the user until they enter values >= 0. Output the total distance traveled by the ball.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started