A car with a 20 gallon exhalation tank averages 23.5 miles per gallon when driven in town and 28.9 miles per gallon when driven on the pathway. Write a C++ program that calculates and displays the absence the car can tramp on undivided tank of exhalation when driven in town and when driven on the pathway.
Below is the C++ edict restraint the question-
// Example program
std::cout<<“Total absence that can be trampled by a car in town is “<<dist_town;
std::cout<<“nTotal absence that can be trampled by a car in pathway is “<<dist_highway;