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

  Create an algorithm for finding the penultimate node

Create an algorithm for finding the penultimate node in a singly linked list where the last element is indicated by a null next reference.

  Discussion of the vulnerabilities of e-mail

One of the concerns for the network project is ensuring secure e-mail and any documents sent through e-mail. Prepare a paper that explains how e-mail messages.

  How can you specify a constraint like a student cannot take

How can you specify a (funny) constraint like a student cannot take a class that is taught by his or her advisor?

  Accept input from the user and verify that they have entered

Accept input from the user and verify that they have entered a 16 bit binary number (note: you'll need to handle binary numbers as strings)

  Explain kerchoff six principles in detail

Auguste Kerchoff put forth a set of guidelines in the development of new algorithms or the evaluation of existing ones. While they are not required.

  Write a program that prints the balance of an account

Write a program that prints balance of an account after first, second, and third year. Account has an initial balance of $1,000 and earns 5 percent interest.

  Identify all the attributes for the employee class

Identify all the attributes for the Employee class. Identify all the set and get methods for each of the attributes identified in 1.b.

  Write a java program that inputs a document

Write a Java program that inputs a document and then outputs a bar-chart plot of the frequencies of each alphabet character that appears in that document.

  Write a program to provide information on the height

Write a program to provide information on the height of a ball thrown straight up into the air.

  Write a machine-language program to output

Write a machine-language program to output the four characters "Frog" on the output device.Write it in a form at suitable for the loader.

  Build a model evaluation system in programming language

Build a general model evaluation system in your favorite programming language, and set it up with the right data to assess models for a particular problem.

  Developing the fsm diagram

Develop the FSM diagram showing how to identify a DOS-like file name containing an optional leading drive letter and a colon, followed by an optional backslash, zero or more directory name isolated by the backslashes.

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