The fuel consumption of an airplane is measured in gal/mi (gallon per mile) or in L/km (liter

Question:

The fuel consumption of an airplane is measured in gal/mi (gallon per mile) or in L/km (liter per kilometers). Write a MATLAB user-defined function that converts fuel efficiency consumption from gal/mi to L/km. For the function name and arguments, use Lkm = Lkm To Galm(gmi). The input argument gmi is the consumption in gal/mi, and the output argument Lkm is the consumption in L/km. Use the function in the Command Window to:
(a) Determine the fuel consumption in L/km of a Boeing 747 whose fuel consumption is about 5 gal/mi.
(b) Determine the fuel consumption in L/km of the Concorde whose fuel consumption is about 5.8 gal/mi.
Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: