Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

A ball is released from a 10 m high roof and bounces two thirds as high on each successive bounce. After traveling a total of

A ball is released from a 10 m high roof and bounces two thirds as high on each successive bounce. After traveling a total of 40 m (up and down motion), how many times did the ball bounce (e.g. touch the ground)? Put the answer in p1a. How high did the ball go before the last bounce? Put the answer in p1b. Use while loop. This is what I have so far:

height=10; distance=0; bounce=0; while distance<=40 distance=distance+height bounce=bounce+1 height=(height*2/3) end

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

Students also viewed these Databases questions