0

Can someone help me understand this?

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. Answer was print (7425 / 550.0)

8th Apr 2021, 5:47 AM
George James Bond
8 Antworten
+ 6
def calculate(time): time = distance / speed print(7425/550) I think this will work!!!
24th Aug 2021, 2:44 AM
Rohith R
Rohith R - avatar
+ 2
we know that, time = distance / speed to print print(7425/550)
10th Feb 2022, 4:12 AM
Marvin Manaog
Marvin Manaog - avatar
+ 1
All you have to do is to calculate the number of hours it will take to reach Sydney. You can do this by dividing the distance by the speed. Like this: hours = 7425 / 550 print(hours) It will give you the answer in float. Or you could directly divide it: print(7425 / 550)
8th Apr 2021, 6:47 AM
Rivan
+ 1
See according to the question u have to find out how much time did the flight would take to cover the distance of 7425 miles by the speed of 550 miles an hour. U might be knowing that: Speed= distance/time So for this question: time=distance/speed
8th Apr 2021, 6:56 AM
Kǟrɨsɦmǟ ❥
Kǟrɨsɦmǟ ❥ - avatar
+ 1
to clear underatanding you can go for this : miles = input() hour = input() flight_time_in_hour = float (miles) / float (hour) print (flight_time_in_hour)
8th Apr 2021, 7:02 AM
Mohibul Alam
Mohibul Alam - avatar
+ 1
RAJANkuar
9th Apr 2021, 5:31 AM
Rajan Kumar
Rajan Kumar - avatar
+ 1
we know that, time = distance / speed to print print(7425/550)
4th Oct 2021, 11:29 AM
Sanjay
+ 1
Well, that was a little confused, but I got the answer, don' try to use the number 60 as an element on your code, the answer is just given to this operation: print(distance/distance per hour) so what you had to do ist just like tis: print(7425/550)
12th Dec 2022, 2:19 PM
José Martín Cruz Jiménez
José Martín Cruz Jiménez - avatar