Ask Question
10 May, 19:52

A car with a 20-gallon gas tank averages 23.5 miles per gallon when driven in town and 28.9 miles per gallon when driven on the highway. write a program that calculates and displays the distance the car can travel on one tank of gas when driven in town and when driven on the highway

+3
Answers (1)
  1. 10 May, 21:49
    0
    Highway:

    cout << "The car can drive " << 20*26.8 << " miles on the highway." << endl;

    Town:

    cout << "The car can drive " << 20*21.5 << " miles in the town." << endl;
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “A car with a 20-gallon gas tank averages 23.5 miles per gallon when driven in town and 28.9 miles per gallon when driven on the highway. ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers