Skip to content

Dr. Ada Owens

inIntro to CS1d

Slides: loops and conditions

Everything from today's lesson. The flowchart on slide 9 is the one worth copying into your notes.

Slides 1 to 8 cover while and for, and where each one is the natural choice. Slide 9 is the flowchart of the guessing game, which is the shape your project wants to be.

The last two slides are off-by-one errors. Read them before you write your loop condition, not after you have spent an hour on it.

0 Comments

No replies yet. Be the first to ask something.