CSC 171
Homework 6

Assigned Mar 4, due Mar 13

For all the programming assignments, be sure to follow the design recipe. Each problem asks you either to create a new class with some methods, or to add a new method to a class you've already written. For classes, you need to identify the names and types of the instance variables, then write each of the methods. For each method, go through the usual contract, examples, skeleton, inventory, body, test steps. I recommend writing the examples by using the tester library, as discussed in class on Feb. 11, so you can easily run all your tests and confirm that they all pass.

Be sure to choose meaningful names for methods and parameters, and watch for opportunities to re-use methods you, I, or the textbook have already written.

Also turn in a log of time spent and errors encountered in the assignment, with brief comments describing each error ("mismatched parentheses" is self-explanatory, but more complex errors might need more description). You may do this using the PSP forms, or simply by keeping track in a text file or on paper and turning it in.

What to Turn In

You should end up with classes StringList, IntList, BookList, two subclasses of each of those, a test class for each, and the Book class copied from homework 3. I recommend putting all of them in one BlueJ project. Zip them up and attach it to an e-mail to me. If you've entered your time and error logs using the on-line forms, I've already got them; if not, e-mail me your log files.

Grading standards

Pretty much the same as the past few assignments.


Last modified:
Stephen Bloch / sbloch@adelphi.edu