Using JAVA:
This assignment is about aggregation and classcollaboration.
You will create several Classes that will be part of an overallclass named InstrumentDisplay. The classes are FuelGage, Odometer,MilesSinceLastGas, and CruisingRange.
The FuelGage should assume a 15 gallon tank of gasoline and anaverage consumption of 1 gallon every 28 miles. It should incrementin 1 gallon steps when you \"add gas to the tank\". It shoulddecrement by 1 every 28 miles. It should display its currentvalue.
You should also have a display that shows how many milestraveled since you last added gasoline, MilesSinceLastGas, and adisplay for the estimated number of miles until you run out ofgasoline, the CruisingRange.
The Odometer should keep track of total mileage from 0 to999,999. After that it turns over back to 0. Make sure your codeallows for this rollover.
The overall class is to be named InstrumentDisplay. You maycreate the various outputs using System.out or JOptionPane. Makesure that account for both filling and emptying the tank. Whileyour odometer will display in 1 mile increments, you should keeptrack of mileage internally in one tenth of a mile increments forpurposes of computing gasoline remaining in the FuelGage and milesin the CruisingRange
Please make sure you comment your code thoroughly.
The code should be nicely formatted and should use propervariables.