/** * Write a description of class VehicleTest here. * * @author (your name) * @version (a version number or a date) */ public class VehicleTesting { // instance variables - replace the example below with your own public static void main(String[] args) { // by this point, the two lines below should work correctly Vehicle[] vehicleList = Utility.read("vehicleData.txt", 20); Utility.printVehicleList(vehicleList); // PHASE 2------------------------------------------------------------------ // now add the following capabilities into the Utility class /* public static int numberOfTrucks(Vehicle[] theVehicles) public static int numberOfConvertibles(Vehicle[] theVehicles) // careful here! public static double averagePrice(Vehicle[] theVehicles) // round to nearest hundredth! */ // Use the printlns below to test it /* System.out.println("Number of trucks: " + Utility.numberOfTrucks(vehicleList)); // display the number of truc System.out.println("Number of convertibles: " + Utility.numberOfConvertibles(vehicleList)); // display the number of convertible System.out.println("Average price: " + Utility.averagePrice(vehicleList)); // display the average price */ // PHASE 3------------------------------------------------------------------ // add the capability below to Utility /* public Vehicle[] allOfMake(Vehicle[] theVehicles, String make) // returns an array of vehicles of the given make */ // use the println below to test /* *MAKE SURE that if the user writes 'jeep' it will find "Jeep" *Utility.printVehicleList(Utility.allOfMake(vehicleList, "Jeep")); */ } }