¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita0
What is the solution
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.
6 Respuestas
+ 4
speed = distance / time
that means
time = distance / speed
Apply the formula and then output the result in hours.
(edited)
Per Bratthammar I typed too fast and mixed it all up. 🤦♀️ Thanks for correction! 😊
+ 4
HI, Lisa !
It can be a bit confusing: time/distance gives pace. Distance/time (km/h) gives speed 🙂. If the pace in life is too high, it’s easy to mix up… 🤓
+ 4
Hi! where did you have difficulty writing this program?
+ 1
Well I did first 550x10 then added 550 from there so about 13 hrs
+ 1
d=7425/550
Print('total flight time in hours =',d)
0
Solution is
print(7425/550)