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

  Describe algorithm for computing number of descendents

Describe, in pseudo-code, algorithm for computing number of descendents of each node of binary tree. The algorithm should be based on Euler tour tour traversal.

  Determine a discrete-time transfer function

Determine a discrete-time transfer function that approximates G(8) using the Adams-Schlumberger predictor as an operational substitution method. You may use a computer algebra package to help with the resulting algebra.

  How the selected product could be used by your client

Discussion of how the selected product could be used by your client to support its cybersecurity objectives by reducing risk, increasing resistance.

  What is the code to create a vector that stores the elements

What is the code to create a vector that stores the elements from a dat file .

  Design a function method named gettimeparts

Declare the structure, and give it the name CurrentTime. The code in the function process should get the time of day and then store the current hour, minute, and second in the structure members.

  Determines whether such a speed will cause the rope to break

Write a program that accepts a rotation speed v and determines whether such a speed will cause the rope to break.

  Arrays and control structures important tools in programming

Arrays and control structures important tools in programming.

  Develop a menu driven console java program todemonstrate

For this assignment, you are required to develop a Menu Driven Console Java Program todemonstrate you can use Java constructs including input/output.

  Determine the amount of energy to be generate

Create a program of LU Decomposition to determine the amount of energy to be generate per reactor Type A, Type B, and Type C.

  What constraints did you experience in given issue

What was the scoop, deliverable, and results of the project? What constraints did you experience and how did you handle them?

  How many of each hammock should treetops make

How many of each hammock should Treetops make? If the restriction on single hammocks were removed, what would be the optimal production plan?

  Choose a formulation that is precise enough to be implement

You have to color a planar map using only four colors, in such a way that no two adjacent regions have the same color.

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