0

I've tried to find the solution to The Flight Time and keep getting test case hidden

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.

13th Oct 2021, 7:54 PM
Joseph Abudar
11 odpowiedzi
+ 2
You just have to divide speed by its distance. Check this out: #your code goes here print(7425/550)
14th Oct 2021, 7:54 AM
Arun Jamson
Arun Jamson - avatar
+ 3
Show your attempt...
13th Oct 2021, 7:57 PM
Saurabh
Saurabh - avatar
+ 3
The formula is fine now. What remains to be changed are the values for Speed and Distance. There is no input to take. The values are fixed.
13th Oct 2021, 8:20 PM
Simon Sauter
Simon Sauter - avatar
+ 2
Why are you multiplying the distance by 60?
13th Oct 2021, 8:14 PM
Simon Sauter
Simon Sauter - avatar
+ 1
Speed = float(input("Enter ")) Distance = float(input("Enter ")) Time = float(Distance *60 /Speed) print (Time)
13th Oct 2021, 8:11 PM
Joseph Abudar
+ 1
Is simple. You have that made a calculation. Try out: print(7425/550) Any question ask me.
15th Oct 2021, 12:37 AM
CGO!
CGO! - avatar
0
That fixed it thank you
13th Oct 2021, 8:26 PM
Joseph Abudar
0
You just write: print(7425/550)
15th Oct 2021, 5:26 PM
Kaitlyn
- 2
Thinking about it now I have no idea
13th Oct 2021, 8:16 PM
Joseph Abudar
- 2
Here's my latest failed attempt: Speed = float(input("Enter ")) Distance = float(input("Enter ")) Time = float(Distance /Speed) print (Time)
13th Oct 2021, 8:18 PM
Joseph Abudar