Question: JAVA Details: Create a class named GasMileage that contains the main method. The method should ask a user for the number of miles driven and
JAVA
Details: Create a class named GasMileage that contains the main method. The method should ask a user for the number of miles driven and the number of gallons of gas used, both as integers, and then calculates and displays the miles per gallon, as an integer number. The program should continue asking for input until a sentinel value has been entered, at which time the program ends. PLEASE Include Pseudocode
This is what I have so far
import java.util.Scanner;
public class GasMileage {
public static void main(String [] args) {
}
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
