Design recipe for Java programs, version 2

    Analysis and design (i.e. "decide what you want to do")

  1. Understand the assignment informally and write down a purpose statement
  2. Write a function contract, specifying what kind of information goes in and what kind comes out
  3. Write examples of how your function will be used, with correct answers (changed since version 1)
  4. Coding ("do it")

  5. Write a class skeleton (if you don't already have one)
  6. Write a method skeleton
  7. Add an inventory to the method skeleton (changed since version 1)
  8. Fill in the Function Body
  9. Compiling and testing ("check that you did it right")

  10. Compile and syntax-check the program.
  11. Style-check the program. (new since version 1)
  12. Test and debug the program. (changed since version 1)

For the next elaboration of this, see version 3.


Last modified: Fri Jan 30 09:14:23 EST 2009
Stephen Bloch / sbloch@adelphi.edu