Design Recipes
Basic design recipe for Scheme functions
(or functions in most other languages, for that matter!)
-
Understand the assignment
informally
- Write a function contract,
specifying what kind of information goes in and what kind comes out
- Write examples of how your
function will be used, with correct answers
- Write the function's Skeleton
- Fill in the Function Body
- Testing
Last modified:
Wed May 30 11:46:34 EDT 2001
Stephen Bloch / sbloch@adelphi.edu