Miles per Gallon of Gas C++. Miles per gallon of Gas – A car with a 16-gallon gas tank averages 345 miles per tankful when driven in town and 460 miles per tankful when driven on the highway. Write a program that calculates and displays the miles per gallon for one tank of gas when driven in town and when driven on the highway. The MPG should have a data type of a double.
MPG = Total number of Miles / Number of Gallons
For help, https://www.fiverr.com/chicofeo/help-you-to-do-c-plus-plus-programs
Tags: Miles per Gallon of Gas C++, Homework C++, Miles per Gallon of Gas C++