Design recipe for Java programs, version 1
Analysis and design (i.e. "decide what you want to do")
- Understand the assignment informally and write
down a purpose statement
- 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
Coding ("do it")
- Write a class skeleton (if you don't already have one)
- Write a method skeleton
- Add an inventory to the method
skeleton
- Fill in the Function Body
Compiling and testing ("check that you did it right")
- Compile and syntax-check the program.
- Test and debug the program.
For the next elaboration of this, see version 2.
Last modified:
Fri Jan 30 09:14:23 EST 2009
Stephen Bloch / sbloch@adelphi.edu