CSC 160 HW3

Assigned 15 Feb, due 27 Feb

For all the programming assignments, be sure to follow the design recipe. Write your function contract, examples, and function definition in the Definitions Window, save it to a file, and send me this file. Also, test your program in one of two ways (described below), save the resulting Interactions Window to a file, and send me this file. Be sure to choose meaningful names for functions and parameters, and watch for opportunities to use functions you've already written.

Also turn in a log of how many errors of different kinds you encountered in the assignment, with brief comments describing each one ("mismatched parentheses" is self-explanatory, but more complex errors might need more description).

This assignment is to be done in pairs, just like homework 2 (but with a different partner).

How to test a program

If you've written your examples in the definitions window, accompanied by "should be ..." correct answers, and inserted your definition before the examples, you can just hit the Execute button and you'll see all the answers in the interactions window.
The other way to do it is to type examples, one by one, into the Interactions window; when you press ENTER, you'll see the result of that example.

The assignment


Last modified:
Stephen Bloch / sbloch@adelphi.edu