Gentle Java Class Wrap-Up Exercise
The purpose of this lab is for you to practice the concepts you
learned in this course without all of the "hand-holding" provided
in the "normal" labs to prove that you can create a simple but complete
Java application from scratch.
Instructions
A software program is required to keep track of fuel purchases for a fleet. We need to keep track of the date of the purchase, as well as the name of the gas station, cost per gallon, number of gallons purchased, the number of miles driven on the tank and the miles per gallon.
To do:
1. Create a new Java project in Eclipse named WrapUp, makeing sure to uncheck the module-info checkbox.
2. Create a class that implements the requirements above.
3. Create a testing class with a main() method that creates a collection (use the generic syntax) and then creates a few gas-purchase objects and stores their references in the collection.
4. The testing class should also display the average MPG for the collection of purchases.