CSC 160 Homework 7

Assigned 21 April, due 3 May

Note: no homework will be accepted after 3 May!

Homework 7a, to be done individually

Re-read the adages page, and choose one (or several closely-related) adages, or one longer article, that mean more to you than they did in January.
Write an essay of one or more well-structured paragraphs: what does it really mean in practice? Do you agree or disagree? Support your claims with specific examples from your own programming experience.

Homework 7b, to be done with a partner if you wish

As always, 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: since you've already included examples in the Definitions window, you should be able to hit the Execute button and see all the results (along with what you said they "should be"). Save the resulting Interactions window to a text file and send me this file too. Be sure to choose meaningful names for functions and parameters, and watch for opportunities to re-use functions you (or the textbook) have 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).

The assignment

Grading standards

Error log:       /30
Essay:        /75

Function name Contract Examples Definition Test results
add-dots /5 /5 /10 /5
count-over-100K /5 /5 /10 /5
fire-highly-paid /5 /5 /10 /5
sort-by-salary /10 /10 /20 /10
table-of-squares /5 /5 /10 /5
table-of-squares XC /5 /5 /10 /5
12.4.2 XC /15 /15 /30 /15
general-sort /10 /10 /20 /10
new sort-by-salary /5 /5 /10 /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:         /450 +   /100 XC


Last modified:
Stephen Bloch / sbloch@adelphi.edu