Convert the QuartsToGallons class to an interactive application. Instead ofassigning a value to the number of quarts, accept the value from the user as input.Save the revised class as QuartsToGallonsInteractive.java. Explanation The program you described is a Java class that performs a conversion of quarts to gallons. The program demonstrates how to perform a conversion of quarts to gallons and ...
Write a Java class that declares a named constant to hold the number of quartsin a gallon (4). Also declare a variable to represent the number of quartsneeded for a painting job, and assign an appropriate value—for example, 18.Compute and display the number of gallons and quarts needed for the job.Display explanatory text with the values—for example, A job that ...