The data file included with this homework assignment contains readings from the
ID: 3700670 • Letter: T
Question
The data file included with this homework assignment contains readings from the fuel flow totalizer on a Boeing 747 flying from LAX to Hong Kong. The fuel flow totalizer measures the total quantity of fuel that is consumed by the aircraft's engines through the duration of the flight. The totalizer's output is temperature-corrected to units of pounds (Ibs). The totalizer's reading is recorded in the data file at the end of each minute. Each totalizer reading represents the total fuel consumption from the beginning of the flight through the current minute. PART I: On paper, work out your strategy for completing Part II. Break it up into smaller parts. Look at the data set, and record your observations about the numbers you see. Work out how you'll make the necessary calculations. Set up the math. Do this before you sit down in front of the keyboard. PART II: Write a MATLAB program that completes the following tasks: 1. Load the data from the "fuel_totalizer.txt" file into a matrix. 2. Use a for loop to calculate the quantity of fuel consumed during each minute of the flight. Write the output in lbs to a new matrix. Think carefully about how you will make thi calculation for the first minute. 3. Use your for loop to also calculate the average fuel flow rate in pounds per second (bs/s) 4. Use your for loop to find the total fuel consumption through the flight. Check to make 5. Calculate the average fuel consumption rate for the entire flight in lbs/hour. for each minute of the flight. Write the output to a new matrix. sure this total is correct. The rate of fuel consumption is much higher when the aircraft is taking off and climbing to cruising altitude. Assuming the fuel flow rate is at least 1.5 times the average rate during takeoff and climb, how many minutes did the takeoff and climb phase of the flight last? You will want to restrict this search to the first half of the dataset. Use a for loop to find the maximum fuel flow rate in lbs/s, and report the rate and the minute when it occurs.Explanation / Answer
Things to keep in mind:
Each reading represents the total fuel consumption from the beginning of the time till current minute. So if you want to find out only the current minute consumption, calculate the difference between current and previous reading.
Initialize required variable here which are used in for loop.
Start for loop, in each iteration do following:
- Quantity of fuel consumed each minute: currntFuelReading-previousFuelReading, print the diff(initialize previousFuelReading to 0 for first iteration and update it in every iteration)
previousFuelReading = currentFuelReading
- Average fuel flow rate: currentAvgFlowRate = currentFuelReading/60
- Total fuel consumption: totalFuel = totalFuel + (currntFuelReading-previousFuelReading) [ in the end of the program this should be equal to last reading in the file]
- Average fuel rate(lbs/hour): time = time + 1 (for each minute, will utilize this after loop )
- Maximum flow rate : if maxFlowRate < currentAvgFlowRate then maxFlowRate = currentAvgFlowRate
After for loop:
- Average fuel rate :
totalHours = time/60
averageTotal = totalFuel/totalHours
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.