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 course. Write a C++ program that calculates and displays the interspace the car can peregrination on individual tank of exhalation when driven in town and when driven on the course.
Below is the C++ legislation control the question-
// Example program
std::cout<<“Total interspace that can be peregrinationled by a car in town is “<<dist_town;
std::cout<<“nTotal interspace that can be peregrinationled by a car in course is “<<dist_highway;