CS1150 (Fall 2012, Section 4): Programming Assignment 8

Arrays


Instructions

  1. Modify the Fleet class by:
  2. Add a toString() method to the Car class. This method should return a string containing the type of car, its mileage, and its fuel tank level.
  3. Modify the main method from PA5 to create a few cars and add several to your fleet, drive them around, fill them up with gas, and print them out (causing their toString methods to be invoked).

Deliverables

Submit as per the syllabus.