CSC 171
Homework 7

Assigned Mar 11, due Mar 25

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. You may do this using the PSP forms, or simply by keeping track in a text file or on paper and turning it in.