The purpose of the lab periods to give you practice on the concepts
in the chapter, and a chance to ask the TA or instructor questions.
It is recommended that you do the whole lab, but it is not required.
Each lab will be marked out of 2. If you do a reasonable amount of the
lab (approximately what a prepared student could do in one hour), then
you get 1 point. The other point comes from doing a simple problem
will be specified in the lab and for which
you will have about 15 minutes.
Extra problem for lab9 (second lab): Write a class Xxx (where
Xxx is replaced by an arbitrary name supplied by the TA, different for
each section), which implements the interface Comparable. You make
up reasonable instance variables and methods were needed and decide
how you want to compare the objects of your class. Also write a
second test class (called XxxTest) which has a main that creates
a few of these objects, stores them in an array, and sorts the
array using java.util.Arrays.sort method.
Submit both your lab and the extra problem using the command (depending on
your section number). The TA will give you a (preliminary)
mark on the lab sheet, and
the submission will be used as a backup or to check your work in more detail.
- Lab 11,
- Lab 9,
- Lab 10,
- Lab 12,
- Lab 14,
- Lab 15,
- Lab 17,
- Lab 19,
- Lab 20,
- Lab 21.
Dr Eric Harley - SCS
Last modified: Tue Feb 8 14:29:36 EST 2005