# How Flight Works 12, Exercise 3: total the phases of a flight # Add up time and fuel for each phase of a short flight and see where the fuel goes. # Illustrative model only; the figures are round numbers, not data for any real aircraft. phases = [ ("Taxi", 12, 3.0), # minutes, kg of fuel per minute ("Takeoff and climb", 18, 50.0), ("Cruise", 70, 38.0), ("Descent", 15, 15.0), ("Approach and taxi in", 15, 8.0), ] total_min = 0 total_fuel = 0.0 for name, minutes, rate in phases: fuel = minutes * rate total_min += minutes total_fuel += fuel print(name + ":", minutes, "min,", round(fuel), "kg") print("Total:", total_min, "min,", round(total_fuel), "kg") for name, minutes, rate in phases: print(name, round(100 * minutes * rate / total_fuel), "percent of fuel") # Output when run: # Taxi: 12 min, 36 kg # Takeoff and climb: 18 min, 900 kg # Cruise: 70 min, 2660 kg # Descent: 15 min, 225 kg # Approach and taxi in: 15 min, 120 kg # Total: 130 min, 3941 kg # Taxi 1 percent of fuel # Takeoff and climb 23 percent of fuel # Cruise 67 percent of fuel # Descent 6 percent of fuel # Approach and taxi in 3 percent of fuel # # The climb burns fuel at the highest rate, and cruise burns most in total because it lasts longest. Descent is cheap because the engines are near idle.