CSC 171
Homework 5

Assigned Feb 25, due Mar 4

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 bunch of classes. You can put all of them in one BlueJ project, or use one project for each of the three problems. 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

Time and Error log:       /50
(I'm not grading on how many or how few errors you encountered, or how much time you took, only on whether you recorded them adequately.)

Programming:

Note: I won't actually grade every one of these methods, but a representative sample; the rest are for practice. If I were to grade them all, the points would look something like this:

Total:         depends on how many methods and classes I actually grade


Last modified:
Stephen Bloch / sbloch@adelphi.edu