CS 139 Algorithm Development

Race Car Statistics

In this lab you will create a class that has class-wide attributes (static variables) in addition to the attributes associated with each object (instance variables). Each object represents some race car driver statistics.

Instructions

  1. Download a copy of the CarMain.java file. This implements the main function you will use to test your implementation of CarStat.
  2. Download a copy of the CarStat.java file. The documentation for the CarStat class is here.
  3. Download a copy of the Util139.java file. The documentation for the Util139 class is here.
  4. Look at the parts of CarStat that have already been defined.
  5. Implement the constructor method. Run your program and for the first input enter -1. Does it appear that the CarStat object is being constructed correctly?
  6. Implement the other methods, one at a time. Rerun the program after implementing each method to test the implemented method. Make sure a method is working correctly before moving on to the next method.
  7. Submit is available for this lab.
Updated 11/15/06