Question: PLEASE SOLVE THEM IN C++ USING CODEBLOCKS OR ANY PROGRAM. 11. Distance per Tank of Gas A car with a 20-gallon gas tank averages 23.5

 PLEASE SOLVE THEM IN C++ USING CODEBLOCKS OR ANY PROGRAM. 11.

PLEASE SOLVE THEM IN C++ USING CODEBLOCKS OR ANY PROGRAM.

11. Distance per Tank of Gas 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. Hint: The following formula can be used to calculate the distance: Distance = Number of Gallons X Average Miles per Gallon

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!