Question: Instructions QuartsToGallonsinte... + 1 class QuartsToGallons Interactive lol Convert the Quarts Toallons program to an interactive application. Instead of assigning a value to the number

 Instructions QuartsToGallonsinte... + 1 class QuartsToGallons Interactive lol Convert the Quarts

Instructions QuartsToGallonsinte... + 1 class QuartsToGallons Interactive lol Convert the Quarts Toallons program to an interactive application. Instead of assigning a value to the number of quarts, accept the value from the user as input An example of the program is shown below: 3 public static void main(String[] args) 1 W Modify the code below 6 finat int QUARTS_IN_GALLON - 4; 7 int quartsNeeded = 18; 8 int gallonsNeeded; 9 int extraQuart Needed; 10 gallons needed quarts Needed / QUARTS_IN_GALLON; extraQuart Needed quarts Needed QUARTS_ON_GALLON: 12 System.out.println("A job that needs. quarts Needed - 1 quarts requires gallons Needed." gallons plus 14 extraQuart Needed quarts."); 15 > 15 17 Enter quarts needed >> 20 A job that needs 20 quarts require 55 gallons plus quarts. Grading Write your Java code in the area on the right Use the Run button to compile and run the code. Clicking the Run Checks button will run pre- configured tests against your code to calculate a grade Once you are happy with your results, click the Submit button to record your score MacBook Air 80 73 90 2 DU A 3 $ 4. % 5 6 7 8 9 0 E R T Y 0 F G H

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!