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

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

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

Post 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 8 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.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply