Encerrado

Assignment 3B

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 distance traveled for each successive bounce is the distance to the floor plus 0.6 of the distance as the ball comes back up. Write a C/C++ 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. At some point in this process, the distance traveled by the ball becomes negligible. Use the constant section to define a "negligible" distance (for example, 0.00001 inches). Terminate the computing when the distance becomes negligible. When this stage is reached, include the number of bounces as part of the output. Use of functions in this program is not necessary, however if you can develop an appropriate function it will improve the readability of your program. Submit outputs with: 1. a drop from 25 feet and let it bounce 5 times - output the distance traveled by the ball 2. a drop from 5 feet and let it bounce 100 times - output the distance traveled and the number of bounces that will bring the ball to a rest.

## Deliverables

1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done. 2) Complete ownership and distribution copyrights to all work purchased.

## Platform

Windows XP, MS Visual C++

Habilidades: Programação C, Engenharia, MySQL, PHP, Arquitetura de software, Teste de Software

Ver mais: the science of programming, rest programming, programming define, how to write assignment, how to write an assignment, how to write a assignment, define programming, define functional programming, define c programming, c programming define, computing programming, define determined, write assignment, bouncing ball, assignment write, php submit assignment, bounces, ball source, source code bouncing ball, bounce source code, ball bounce, bouncing ball source code, bounce ball, ball code, visual assignment

Acerca do Empregador:
( 7 comentários ) Korea, Republic of

ID do Projeto: #2976318

26 freelancers estão ofertando em média $13 para este trabalho

NeoOneC

See private message.

$5.95 USD in 3 dias
(117 Comentários)
6.6
slavas71

See private message.

$17 USD in 3 dias
(99 Comentários)
6.5
mihaiscortaru

See private message.

$6.8 USD in 3 dias
(160 Comentários)
6.0
idleswell

See private message.

$8.5 USD in 3 dias
(175 Comentários)
5.9
utopiaprogr

See private message.

$8.5 USD in 3 dias
(62 Comentários)
5.4
sanatanvw

See private message.

$17 USD in 3 dias
(72 Comentários)
5.5
lvdt

See private message.

$8.5 USD in 3 dias
(101 Comentários)
5.1
projetcoder

See private message.

$17 USD in 3 dias
(39 Comentários)
5.0
syedmuradali

See private message.

$34 USD in 3 dias
(37 Comentários)
4.6
shahizanvw

See private message.

$4.25 USD in 3 dias
(46 Comentários)
4.6
stevelb22

See private message.

$8.5 USD in 3 dias
(61 Comentários)
4.5
szaszalexmcpd

See private message.

$4.25 USD in 3 dias
(55 Comentários)
4.4
vw821235vw

See private message.

$6.8 USD in 3 dias
(94 Comentários)
4.3
teamvw

See private message.

$5.95 USD in 3 dias
(36 Comentários)
3.8
shashikhanvw

See private message.

$85 USD in 3 dias
(15 Comentários)
3.8
gsb340

See private message.

$3.4 USD in 3 dias
(10 Comentários)
3.6
cossimin

See private message.

$8.5 USD in 3 dias
(18 Comentários)
3.5
kidronvw

See private message.

$12.75 USD in 3 dias
(5 Comentários)
2.8
garynewelluk

See private message.

$5.95 USD in 3 dias
(11 Comentários)
2.1
aktvw

See private message.

$17 USD in 3 dias
(8 Comentários)
2.0