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
- Download a copy of the CarMain.java
file. This implements the main function you will use to test your
implementation of CarStat.
- Download a copy of the CarStat.java
file. The documentation for the CarStat class
is here.
- Download a copy of the Util139.java
file. The documentation for the Util139 class
is here.
- Look at the parts of CarStat that have
already been defined.
- 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?
- 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.
- Submit is available for this lab.
Updated 11/15/06