Answer:

'Ask the user for the data.
 . . .

'Calculate mpg for first tank of gas.
LET MPG1 = (SECONDMILES - FIRSTMILES) / GALLONS1

'Calculate mpg for second tank of gas.
LET MPG2 = (THIRDMILES - SECONDMILES) / GALLONS2

'Calculate the difference between mpg rats.

'Write out the result.
 
END

Calculating the Difference

It might seem odd that the second odometer reading, SECONDMILES, is used in both the first calculation and the second calculation. Consider an example:

QUESTION 8:

The two miles-per-gallon rates, MPG1 and MPG2 have been calculated. Now finish the program by filling in the last two steps:

 . . .


'Calculate the difference between mpg rats.


'Write out the result.


END

(Type your answers in the boxes privided, or just write them on a scrap of paper.)