Carclass. Each should set the car's mileage per gallon to the
AVERAGE_MPGconstant defined in Assignment 7
Car()--- a standard no-args constructor. Set mileage to 0 and tank level to 0.
Car(double miles, double fuel)--- a constructor that creates a car that has had some miles put on it and was bought with fuel in the tank. Call the other constructor to automatically set the MPG to the default MPG.
double fillTank(double amount). This method should have the same behavior as the existing
fillTankmethod, except that the argument is a number of gallons to add to the tank. If the resulting tank level would be greater than 15 gallons, print a message to this effect and don't change the tank level. This is an example of method overloading.
mainmethod to allow for this functionality. Use helper methods if/when appropriate.
Submit as per the syllabus.