+ 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.

16th Nov 2021, 9:04 AM
Karl Jeashun
7 ответов
+ 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
16th Nov 2021, 9:12 AM
Rik Wittkopp
Rik Wittkopp - avatar
+ 3
Use the / operator
16th Nov 2021, 8:20 PM
CGO!
CGO! - avatar
+ 2
Well done for making that association. Little learning steps make for a long journey 😁👍
16th Nov 2021, 9:42 AM
Rik Wittkopp
Rik Wittkopp - avatar
+ 1
Thank you Rik Wittkopp i managed to understand the equation a bit :)
16th Nov 2021, 9:20 AM
Karl Jeashun
+ 1
Let us know how you go
16th Nov 2021, 9:21 AM
Rik Wittkopp
Rik Wittkopp - avatar
+ 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
16th Nov 2021, 9:24 AM
Karl Jeashun
+ 1
Thank you Rik Wittkopp
16th Nov 2021, 9:43 AM
Karl Jeashun