Practice with while loops design - solve the simpler
problem first! Ignore the Color changes till solve without it.
- Write down and draw a picture of WHAT you see first. Describe
WHAT you see. Then figure out the HOW.
- What things have to happen in the while loop initialization?
-
What things have to happen in the while loop body?
- How many times does the while loop body get executed?