Ask Question
6 September, 22:23

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. 7 September, 00:25
    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?
Find 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 and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers