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)
8 odpowiedzi
+ 6
def calculate(time):
time = distance / speed
print(7425/550)
I think this will work!!!
+ 2
we know that,
time = distance / speed
to print
print(7425/550)
+ 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)
+ 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
+ 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)
+ 1
RAJANkuar
+ 1
we know that,
time = distance / speed
to print
print(7425/550)
+ 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)