Write a program that lets the user enter the initial height

Assignment Help Computer Engineering
Reference no: EM132135993

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

Reference no: EM132135993

Questions Cloud

What was the strategy used in the case : What improvements could you offer as an IT leader managing the strategy for the situation covered by the case?
The task is to remove suffix from last name column : The task is to remove suffix from last name column (e.g. Smith Sr. or Stevens Jr.) and put into the preexisting suffix column in the DB.
Does there always exist a perfect matching with no strong : Does there always exist a perfect matching with no strong instability? Does there always exist a perfect matching with no weak instability?
Eliminate the problem and turn the initiative into a success : Explore and elaborate on this reason for failure. Provide a solution that will eliminate the problem and turn the initiative into a success
Write a program that lets the user enter the initial height : Write a program that lets the user enter the initial height of the ball and the number of times the ball is allowed to continue bouncing.
Write function called closer_root that takes two numbers : Write another function called closer_root that takes two real numbers and returns the one whose square root is closer to the number 10.
Write a function to determine the squareroot of a number : Write a function to determine the squareroot of a number. The squareroot of a number can be approximated by repeated calculation using the formula.
Size of accounts receivable : Its accounts are, on average, four days past due. If annual credit sales are $9.75 million, what is the company's balance sheet amount in accounts receivable?
Discuss the need for open systems communication : There are standards in network communication through which data is transferred from one system to another.

Reviews

Write a Review

 

Computer Engineering Questions & Answers

  What is the bandwidth required in bps

What is the bandwidth required (in bps) if the standard analog to-digital sampling rate is used and each sample is converted into an 8-bit value?

  Find instruction format for each instruction - mips program

Using the MIPS program below (including bugs), find the instruction format for each instruction and the hexadecimal values of each instruction field.

  Write the codes for paradise and airspeed

Draw the optimal coding tree and the (weighted) average code length. Show the steps. Write the codes for "paradise" and "airspeed".

  Analyze the trade-off between storage and transmission time

Try saving it in different formats and with different options set. Analyze the trade-off between storage and transmission time versus resolution and quality.

  Design circuits for half and full subtractors

Design circuits for half- and full subtractors. The half-subtractor has two inputs and two outputs (DIFFERENCE and BORROW). The full sub-tractor has three input

  Your boss has just heard regarding some nefarious computer

your boss has just heard about some nefarious computer activities called ping sweeps and port scans. he wants to know

  Insert at least five sample rows of data into the employee

The database should have a table named Employee , with columns for employee ID, name, position, and hourly pay rate.

  Analyze your algorithm and show results using order notation

Use the dynamic programming approach to write an algorithm for Exercise. Analyze your algorithm and show the results using order notation.

  Develop a website in google sites

Develop a Website in Google Sites. Using the same organization and its informational content, develop the Google Site following the below directions.

  Draw cause-and-effect diagram for this problem

Information about each course, such as professor, department, and prerequisites will be included to help students make informed decisions.

  Imagine you are the lead application developer for a

imagine you are the lead application developer for a commercial website development project at a midsized organization.

  Recall extensive change that have witnessed

Try to generalize your observations so they can serve as a guideline for similar cases.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd