Objective
Create a program Python to ask the user for a distance in meters and the time taken (hours, minutes, seconds).
Display the speed, in meters per second, kilometers per hour and miles per hour.
1 mile = 1609 meters.
Input and output format. Read the distance in meters, the hours, the minutes and the seconds (one per line, with no prompts) and print three lines: Meters per second: …, Kilometers per hour: … and Miles per hour: …, each with 2 decimals. The time is the sum of hours, minutes and seconds expressed in seconds.
1200
0
13
45
Meters per second: 1.45
Kilometers per hour: 5.24
Miles per hour: 3.25
Open the editor in full screen: the statement on the left and your code, the output and the tests on the right.
Start exercise