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.
11 odpowiedzi
+ 2
You just have to divide speed by its distance.
Check this out:
#your code goes here
print(7425/550)
+ 3
Show your attempt...
+ 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.
+ 2
Why are you multiplying the distance by 60?
+ 1
Speed = float(input("Enter "))
Distance = float(input("Enter "))
Time = float(Distance *60 /Speed)
print (Time)
+ 1
Is simple.
You have that made a calculation.
Try out:
print(7425/550)
Any question ask me.
0
That fixed it thank you
0
You just write: print(7425/550)
- 2
Thinking about it now I have no idea
- 2
Here's my latest failed attempt:
Speed = float(input("Enter "))
Distance = float(input("Enter "))
Time = float(Distance /Speed)
print (Time)