CSC 160 Homework 9

Assigned Nov. 26, due Dec. 8

What to turn in and how

You need to turn in your source code (the contents of a definitions window), your test runs (the contents of an interactions window after you've executed the definitions), and your error log. If you don't turn in all three of those things, you'll lose points.

You may keep the error log in a text file and e-mail it in, or you may instead use the PSP on-line forms.

For the source code and test runs, you may save each one to a file and e-mail it to me, or you may use the "handin" button in DrScheme.

For all the programming assignments, be sure to follow the design recipe. For functions whose only effect is to draw a picture on a canvas, test them yourself one by one by typing function-calls into the interactions window, but don't bother turning in the interactions file; I'll just test them myself in the same way.

This assignment is to be done in pairs, just like previous homeworks, but with a different partner.

Note: For all the problems in this assignment, you may use either nested-cons notation or list notation, whichever you are more comfortable with.

The assignment

Grading standards

Error log:       /15

table-of-squares Contract:   /5 Examples:   /5 Definition:   /10 Results:   /5
random-posns Contract:   /5 Examples:   /5 Definition:   /10 Results:   /5
11.4.7: is-not-divisible-by<=i Contract:   /5 Examples:   /5 Definition:   /10 Results:   /5
11.4.7: prime? Contract:   /5 Examples:   /5 Definition:   /10 Results:   /5
sort-candidates Contract:   /10 Examples:   /10 Definition:   /20 Results:   /10
12.4.2insert-everywhere/in-all-words (extra credit) Contract:   /15 Examples:   /15 Definition:   /30 Results:   /15

General skills:

Following directions /20
Writing contracts from word problems /20
Choosing examples /20
Choosing names /20
Coding /20
Code re-use and choice of auxiliaries /20

Total:         /285


Last modified:
Stephen Bloch / sbloch@adelphi.edu