Program that computes miles per gallon for an automobile


Write a program that computes miles per gallon for an automobile. The program should ask for the beginning milage reading on the odometer at first. For each fill-up the program should ask for the milage reading on the odometer and the gallons of gas. It should then display the miles per gallon for that fill-up and the cumulative miles per gallon for all gas purchased so far. Stop when the user puts in zero for the milage. 

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: Program that computes miles per gallon for an automobile
Reference No:- TGS0144862

Expected delivery within 24 Hours