- see example problem, Loop0.java and Loop1.java
- must decide on the actions to repeat, the body of the loop
- Determine body by looking at the end of the loop, not the beginning.
- must decide how to determine the number of iterations
- pre-condition (while) - LoopWhile.java
- post-condition - LoopDo.java
- counted - LoopFor.java
Most loops include:
- setup or initialization
- decision
- body of actions
- update