posted by Jamie .
Owners of SUVs need to know the miles per gallon every month. Given the amount of money spent to fill the gasoline tank, the number of miles driven since the last time the tank was filled, and the price per gallon, develop a computational model that computes the miles per gallon.
price = $p/gal
money spent = $s
miles driven = m mi
mi/gal = m mi * $p/gal / $s = mp/s