... several tankfuls of gasoline by recording miles drivenand gallons used for each tankful.develop a c++ programthat will input the miles driven and gallons used for each tankful. the program should calculate and display the miles per gallons obtainedfor each tankful. after processingall input information, the program should calculate and print the combined miles per gallon obtained for all tankfuls
enter the gallons used (-1 to end):12.8
enter the miles driven:287
the miles/gallon for this tank was 22.421875
enter the gallons used(-1 to end):10.3
enter the miles driven:200
the miles/gallon for this tank was 19.417475
enter the gaallons used(-1 to end): 5
enter the miles driven:120
the miles/gallons for this tank was 24.000000
enter the gallons used(-1 to en):
the overall average miles/gallons was 21.601423