Convert the quartstogallons class to an interactive application. instead of assigning a value to the number of quarts, accept the value from the user as input.
As mentioned in the problem we need to take inputs from the user so that we have created the instance of scanner class.
Now we can take inputs like QUARTS_IN_GALLON and quartsNeeded
public static void main(String args)
Scanner s = new Scanner(System.in)
int QUARTS_IN_GALLON = s.nextInt(); // here we are taking inputs from the user
int quartsNeeded = s.nextInt();
int gallonsNeeded ;
gallonsNeeded = quartsNeeded / QUARTS_IN_GALLON;
extraQuartsNeeded = quartsNeeded % QUARTS_IN_GALLON;
System.out.println("A job that needs " + quartsNeeded +
" quarts requires " + gallonsNeeded + " gallons plus " +
extraQuartsNeeded + " quarts.");
answer; i believe that the correct answer is (department of highway safety and motor vehicles);
answer; the above statement is (false); a computer (word) is the amount of data;