Question #262368

(Average speed) Assume a runner runs 14 kılometers in 45 minutes and 30 sec-

onds. Write a program that displays the average speed in miles per hour. (Note that

 1 mile is 1.6 kilometers.)


Expert's answer

dist = float(input("Distanse in km: "))
time  = int(input("Hours: "))*3600
time += int(input("Minutes: "))*60
time += int(input("Seconds: "))
speed = ((dist/1.6)/time)*3600
print(f"Average speed = {speed} miles per hour")

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

LATEST TUTORIALS
APPROVED BY CLIENTS