Sandeep K.
asked 05/31/21Python solving problems
You need to calculate the flight time of an upcoming trip. You are flying from LA to Sydney, covering a distance of 7425 miles, the plane flies at an average speed of 550 miles an hour.
Calculate and output the total flight time in hours.
Hint
The result should be a float.
1 Expert Answer

Patrick B. answered 05/31/21
Math and computer tutor/teacher
D=0
while (D==0):
D = input(" Please input the distance :>")
R=0
while (R==0):
R=input(" Please input the rate of speed :>")
T = float(D)*1.0/float(R)
print("Distance = " + str(D))
print("Rate of Speed = " + str(R))
print("Time = " + str(T))
#7425/550=13.25 --> 13 hours and 15 minutes
Still looking for help? Get the right answer, fast.
Get a free answer to a quick problem.
Most questions answered within 4 hours.
OR
Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.
Chinde G.
13.5 is ur answer Print(7425/550) It is equal to 13.5 hrs10/20/21