+ 1
Can someone help in flight time float?
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.
7 odpowiedzi
+ 3
Karl Jeashun
This is a simple code, so in order to understand your difficulty, we need to see your attempt.
I would like to provide this hint.
17 / 4 = 4.25
17 // 4 = 4
17 % 4 = 1
+ 3
Use the / operator
+ 2
Well done for making that association.
Little learning steps make for a long journey
😁👍
+ 1
Thank you Rik Wittkopp i managed to understand the equation a bit :)
+ 1
Let us know how you go
+ 1
There was another hint while i was answering the question and it said that it was a float, i was using 2 slashes at first but now i understand that 1 slash is a float
+ 1
Thank you Rik Wittkopp