- 23
How to solve the flight time
21 Antworten
+ 18
yeah i know the solution is
x=7425
y=550
h=(x/y)
print (float(h))
+ 6
print (7425/550) the hint was made the question tricky for me but you don't have to put .0 because either way it would be a float.
+ 3
x=7425
y=550
h=(x/y)
print(float(h))
+ 1
Storing the flight number
flight_n = "BA0117"
Storing the flight information
destination = "New York"
distance = 1580
print(flight_n)
print(destination)
print(distance)
0
Did not act
0
Thanks tanks very tanks
0
I had transcribed X and Y, the truth😅
0
print(7425.0/550.0)
0
(7425.0/550.0)
0
def time(distance, speed):
time = distance / speed
print(time)
time(7425, 550)
speed = distance / time
time = distance / speed
0
Print(float (7425/550))
0
thank you
0
distanceMiles = 7425
averageSpeed = 550
totalFlightTime = distanceMiles / averageSpeed
print(totalFlightTime)
0
@best tube you have some extra lines in code:
time = distance / speed - remove last one
speed = distance / time - remove it completely - why did you put speed here?? we have the given average speed of 550 miles an hour
0
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
x=7425
y=550
h=(x/y)
print(float(h))
for more doubt solving telegram on this channel
https://youtu.be/SF7i81_89q8
0
print(float(7425/550))
0
Can someone help me? I have used all these codes but the results are showing no Input and output
- 1
Sh.M It will be helpful if you insert your code
- 1
print(float(7425/550))
- 2
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.
Hint
The result should be a float.