CSC 160 Homework 3

Assigned Feb. 10, due 24 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: 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).

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

The assignment

Grading standards

Error log:       /15

Function name Contract Examples Definition Test results
trip-cost & auxiliaries
  What would you need to change?
/15 /15 /30 /15
/5
progress-bar /5 /5 /10 /5
within? & auxiliaries, if any /10 /10 /20 /10
smallest-of-3 /5 /5 /10 /5
digital-thermometer /5 /5 /10 /5
carpet-price & auxiliaries, if any /10 /10 /20 /10
thermometer & auxiliaries (XC)
/15 /15 /30 /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:         /465


Last modified:
Stephen Bloch / sbloch@adelphi.edu