A car's miles-per-gallon (MPG) can be calculated with the following formula: MPG= Miles driven / Gallons of gas used. Write a program that asks the user to input the number of miles driven and gas used. It should calculate the car's miles-per gallon and display the result on the screen.
Breaking it down
Initialize variables
Create method to calculate MPG
Ask user for input
Calculate and display results
Output
Unit tests
Level Up
Format MPG
Validate user input
In the case a user enters in 0 gallons, how should you handle it?