CSC 160 Homework 8

Assigned Nov. 15, slightly modified Nov. 18, due Dec. 1

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. If you don't have a "handin" button (it'll look like a hand holding a pen), see the directions for installing it.

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.

The assignment

Grading standards

Error log:       /30

count-positives Contract:   /5 Examples:   /5 Definition:   /10 Results:   /5
convert-reversed Contract:   /5 Examples:   /5 Definition:   /10 Results:   /5
convert (extra credit) Contract:   /5 Examples:   /5 Definition:   /10 Results:   /5
cube-each Contract:   /5 Examples:   /5 Definition:   /10 Results:   /5
plot-points Contract:   /5 Examples:   /5 Definition:   /10 Results:   /5
keep-in-circle Contract:   /5 Examples:   /5 Definition:   /10 Results:   /5
rename-dolls Contract:   /5 Examples:   /5 Definition:   /10 Results:   /5
substitute Contract:   /5 Examples:   /5 Definition:   /10 Results:   /5
simplified rename-dolls     Definition:   /10 Results:   /5
employee-list type Definition:   /5 Examples:   /5 Templates:   /10  
any-over-100K? Contract:   /5 Examples:   /5 Definition:   /10 Results:   /5
names-over-100K Contract:   /5 Examples:   /5 Definition:   /10 Results:   /5
fire-high-salaries Contract:   /5 Examples:   /5 Definition:   /10 Results:   /5
give-raises Contract:   /5 Examples:   /5 Definition:   /10 Results:   /5
candidate-list type Definition:   /5 Examples:   /5 Templates:   /10  
add-vote-for Contract:   /5 Examples:   /5 Definition:   /10 Results:   /5
count-all-votes Contract:   /5 Examples:   /5 Definition:   /10 Results:   /5
winner Contract:   /5 Examples:   /5 Definition:   /10 Results:   /5
winner extra credit Contract:   /5 Examples:   /5 Definition:   /10 Results:   /5
election Contract:   /5 Examples:   /5 Definition:   /10 Results:   /5

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:         /580


Last modified:
Stephen Bloch / sbloch@adelphi.edu