Solution
The code
Gas mileage problem
Gas mileage algorithm
Calculate MPG
Writing the MPG program
Price of gas problem
Pseudocode
How many fish in a pond
The calculation
Writing the program