CSC 160 Homework 7

Assigned Oct. 29, due Nov. 14

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.

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

The assignment

Grading standards

Error log:       /15

checking-account struct type Definition:   /5 Contracts:   /5 Examples:   /5 Templates:   /10
savings-account struct type Definition:   /5 Contracts:   /5 Examples:   /5 Templates:   /10
credit-account struct type Definition:   /5 Contracts:   /5 Examples:   /5 Templates:   /10
account mixed type     Examples:   /5 Templates:   /10
withdraw Contract:   /10 Examples:   /10 Definition:   /20 Results:   /10
checked-withdraw 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:         /300


Last modified:
Stephen Bloch / sbloch@adelphi.edu