( --> )
Sample Programming Challenge
Title
Objectives
- To engage you in array processing.
- To engage you in String processing.
- To engage you in an analogical thought process.
- To reinforce the practice of writing and testing
library classes.
Part 1
- By analogy with the BagOfInts.java example, write
a BagOfWords class.
- By analogy with the BagOfIntsTester.java example,
write a test program to test all of the
functionality in your BagOfWords class.
Part 2
- By analogy with the BagOfInts.java example, write
a OrderedBagOfWords class.
- By analogy with the OrderedBagOfIntsTester.java
example, write a test program to test all of the
functionality in your BagOfWords class.
Part 3
- By analogy with the BagOfInts.java example, write a
SetOfWords class.
- By analogy with the SetOfIntsTester.java example,
write a test program to test all of the
functionality in your BagOfWords class.
Part 4
- By analogy with the SetOfInts.java example, write
a OrderedSetOfWords class.
- By analogy with the BagOfIntsTester.java example,
write a test program to test all of the
functionality in your OrderedSetOfWords class.