Java programming homework
The second programming assignment (HW4) is designed to help you gain experience with object oriented programming in Java. The given file for hw4, "hw4.given.tar.gz", is on the class web page. To untar and unzip the file, execute tar -xzvf hw4.given.tar.gz It will expand to create a directory called hw4, which contains sub- directories part0, ..., part9, one for each part of the assignment. Each part has a Makefile. Don't modify them. Main.java, which is different for each part, is used to test your code by creating objects, invoking methods, etc. As you did on the previous assignment, you'll be using the tester tool for testing. Proceed similarly to what you did on the previous programming assignment: cd part0 # add a bunch of code make # if make gives errors, fix them and make again. ../tester # if tester gives errors, fix them and repeat this cycle. In Part 7 (only), additional tests (in Main.java and correct output files) check that the iterators' next() methods give an error if they're invoked when no elements remain in their collection. (In subsequent parts, such erroneous behavior results in an exception, so the testing doesn't use these extra tests.) Similar to the last assignment, each part builds off the last. When you're finished with one part, copy all .java files ***EXCEPT Main.java*** to the next part. Then modify these copies to start your solution for the next part. ***Exception: again, don't copy Main.java from part to part.*** See the documentation on tester (on the class web page) for details on its use. As always, get started early to avoid the last minute rush!