Overview
Students are introduced to the “while loop” construct by first analyzing a flow chart and then by completing a series of programming exercises. The “while loop” repeats a block of code based on a Boolean condition.Vocab
- Iterate - To repeat in order to achieve, or get closer to, a desired goal.
- while loop - a programming construct used to repeat a set of commands (loop) as long as (while) a boolean condition is true.
New Code
Resources
-
(Optional) Flowcharts with While Loops - Activity Guide (copy as MS Word, Google Doc)