- 2

I need Help with Flight Time question no.6

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. #flighttime

31st Oct 2021, 8:23 PM
Peter Mousaferiadis
Peter Mousaferiadis - avatar
5 odpowiedzi
+ 5
Peter Mousaferiadis , to get useful help from the community,  we need to see your attempt first. without having seen your code, it is difficult to find out where the issue is. => please put your code in playground and link it here thanks!
31st Oct 2021, 9:02 PM
Lothar
Lothar - avatar
+ 1
To find out the flight time, you need to divide the distance by the speed
31st Oct 2021, 9:11 PM
Solo
Solo - avatar
0
Peter Mousaferiadis We can't see your code through that link. By the way why did you divide with 60. You need to calculate hours not minutes. Description says you have distance (miles) and you have speed (miles / hour) now calculate total hours.
1st Nov 2021, 2:25 AM
A͢J
A͢J - avatar
- 1
@lothar - here is my code. What's the matter with it. When you say the playground. What is that? print ((7425//550)//60 Here is link https://www.sololearn.com/learning/eom-project/1169/1440
1st Nov 2021, 12:20 AM
Peter Mousaferiadis
Peter Mousaferiadis - avatar