I'm no good a math. Need help with the equation for flight tine problem. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

I'm no good a math. Need help with the equation for flight tine problem.

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. That's the above problem. I know I need to print(maths here) but I dint know the math. I thought it would be 550**8/7425 but that's wrong. Could really use the help thanks.

2nd Oct 2021, 10:23 PM
Guest 1
Guest 1 - avatar
3 Answers
+ 6
speed = distance / time therefore time = distance / speed
2nd Oct 2021, 10:28 PM
Simon Sauter
Simon Sauter - avatar
+ 1
Thanks. I was doing it backwards. So simple really.
2nd Oct 2021, 10:30 PM
Guest 1
Guest 1 - avatar
0
Guest 1 yep you have to know formula well for it and know how to play with formulas . mostly we can search these things but in exams time you have given timer so you have to think in that time so for it you must know aptitude part as well and formulas for every chapter so it will be easy to solve
3rd Oct 2021, 6:35 PM
Sayyam Jain
Sayyam Jain - avatar