2.5. Distance Travelled - Python

in #programming8 years ago

Starting out with Python, Third Edition, Tony Gaddis

Chapter 2

Programming Challenges

--------------------------------------------------------------------------------------------------------------------------------------------------------------------

5. Distance Traveled

Assuming there are no accidents or delays, the distance that a car travels down the inter-state can be calculated with the following formula:

Distance = Speed * Time

A car is traveling at 70 miles per hour. Write a program that displays the following:

The distance the car will travel in 6 hours

The distance the car will travel in 10 hours

The distance the car will travel in 15 hours

Starting out with Python, Third Edition, Tony Gaddis

Happy Steeming Everyone :)

Coin Marketplace

STEEM 0.28
TRX 0.11
JST 0.031
BTC 68706.20
ETH 3751.71
USDT 1.00
SBD 3.76