Draw flowchart AND write pseudo code
Boeing 747 uses fuel at the rate of 4,776 gallons per hour at cruising speed and 2600 gallons for takeoff and 1500 gallons for landing. Calculate the fuel needed for a trip. User will input the trip length in hours.
Thanks for the question
fuel to cruise = hours in air * rate of cruising / hour
Total fuel is equal to = fuel to take off + fuel to land + fuel to cruise
========================================================================
Pseudo code will be as follows -
trip_length = INPUT('Enter trip length (in hours): ')
total_fuel = trip_length * 4776 + 2600 + 1500
OUTPUT ('Total fuel (in gallons) needed is: ', total_fuel)
========================================================================
FLOW CHART
Get Answers For Free
Most questions answered within 1 hours.