Design a program which computes and outputs on the screen the time required to travel 8000miles at a speed of 300mph.?
- KrishnamurthyLv 72 months ago
The time required to travel 8000 miles at a speed of 300 mph:
26 Hours 40 minutes
- brilliant_movesLv 72 months ago
What programming language are you learning? Here's a solution written in Python:
#speed = distance / time => time = distance / speed
print ("Time required = %.2f hours" % (8000 / 300.0))
- David KLv 62 months ago
You can do that with pencil and paper or a simple calculator.