subject

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 from which the ball is dropped, the bounciness index, and the number of times the ball is allowed to continue bouncing. Output should be the total distance traveled by the ball.

Below is an example of the program input and output:

Enter the height from which the ball is dropped: 25
Enter the bounciness index of the ball: .5
Enter the number of times the ball is allowed to continue bouncing: 3

Total distance traveled is: 65.625 units.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 05:30
Agood flowchart alludes to both the inputs and outputs you will need to receive and give to the user. true or false?
Answers: 3
question
Computers and Technology, 22.06.2019 14:30
Hi plz 11 ! when planning a table, what step comes first: "define the column headers" or "calculate the number of columns/rows"? a. calculate the number of columns/rows b. define the column headers
Answers: 1
question
Computers and Technology, 22.06.2019 18:40
Mariah was working on a multimedia presentation that included both video and audio files. the file was huge, and she wanted to send it to her coworker in another office. she needed to reduce the size of the file so that it could be transmitted faster. the utility she used to do this was
Answers: 2
question
Computers and Technology, 23.06.2019 07:00
1. you have a small business that is divided into 3 departments: accounting, sales, and administration. these departments have the following number of devices (computers, printers, etc.): accounting-31, sales-28, and administration-13. using a class c private network, subnet the network so that each department will have their own subnet. you must show/explain how you arrived at your conclusion and also show the following: all available device addresses for each department, the broadcast address for each department, and the network address for each department. also, determine how many "wasted" (not usable) addresses resulted from your subnetting (enumerate them).
Answers: 3
You know the right answer?
A standard science experiment is to drop a ball and see how high it bounces. Once the “bounciness” o...
Questions
question
History, 18.09.2020 19:01
question
Mathematics, 18.09.2020 19:01
question
Mathematics, 18.09.2020 19:01
question
Mathematics, 18.09.2020 19:01
question
Mathematics, 18.09.2020 19:01
question
Physics, 18.09.2020 19:01
question
Biology, 18.09.2020 19:01
question
Mathematics, 18.09.2020 20:01
question
Biology, 18.09.2020 20:01
question
Mathematics, 18.09.2020 20:01
question
English, 18.09.2020 20:01
question
Health, 18.09.2020 20:01
question
Mathematics, 18.09.2020 20:01
question
Mathematics, 18.09.2020 20:01
question
English, 18.09.2020 20:01
question
Mathematics, 18.09.2020 20:01
question
Mathematics, 18.09.2020 20:01
question
Chemistry, 18.09.2020 20:01
question
Biology, 18.09.2020 20:01
question
Mathematics, 18.09.2020 20:01
Questions on the website: 13722363