Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Application Development And Design

Authors: Michael V. Mannino

1st Edition

0072463678, 978-0072463675

More Books

Students also viewed these Databases questions

Question

1. Define mass and mediated communication

Answered: 1 week ago