Answer to Question #262368 in Python for khaled

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.)


1
Expert's answer
2021-11-08T11:24:58-0500
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!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS