CS 1713 Introduction to Computer Science, Spring 2006 Project 2 Comments

This project was graded on the basis of 20 points.

  1. Format your source code so that no lines are longer than 80 columns.
  2. The equals method of the Vehicle class should be written directly, without referring to a compareTo method.
  3. compareTo only makes sense when any two objects in the class can be ordered. This is not the case with the Vehicle class.
  4. The constructor of the Vehicle class must make a copy of the array and a copy of each tire.
  5. If x is boolean, replace if(x == true) with if(x) and replace if(x == false) with if(!x).
  6. When you replace a tire, do a return, just in case there are 2 tires with the same serial number.
  7. Do not use == to compare strings, use equals.
A zip file of a completed project can be found here.