Page 1 of 1

Assignment - Distance per Tank of Gas A car with a 25-gallons gas tank averages 21.5 miles per gallon when driven in tow

Posted: Sun Jul 03, 2022 11:22 am
by answerhappygod
Assignment Distance Per Tank Of Gas A Car With A 25 Gallons Gas Tank Averages 21 5 Miles Per Gallon When Driven In Tow 1
Assignment Distance Per Tank Of Gas A Car With A 25 Gallons Gas Tank Averages 21 5 Miles Per Gallon When Driven In Tow 1 (33.36 KiB) Viewed 19 times
Assignment - Distance per Tank of Gas A car with a 25-gallons gas tank averages 21.5 miles per gallon when driven in town and 26.8 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 formula to calculate the distance: Distance = Number of Gallons X Miles per Gallon The output will be: (Your output MUST match the output as displayed to get full credit) Skips to next line The car can average a distance of 537.5 miles on a full tank when driven in town. (Blank line) The car can average a distance of 670 miles on a full tank when driven in highway.