Question: Write a java program that calculates a cars gas mileage. The program should ask the user to enter the number of gallons of gas the
Write a java program that calculates a cars gas mileage. The program should ask the user to enter the number of gallons of gas the car can hold and the number of miles it can be driven on a full tank. It should then calculate and display the number of miles per gallon the car gets.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
