Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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. 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 GallonStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started