Question: dr.java QUESTION 17 A car's miles-per-gallon (MPG) can be calculated with the following formula: MPG - Miles driven / Gallons of gas used Write a
QUESTION 17 A car's miles-per-gallon (MPG) can be calculated with the following formula: MPG - Miles driven / Gallons of gas used Write a program that asks the user for the number of miles driven and the gallons of gas used. It should calculate the car's miles-per-gallon and print it
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
