Computer programming teachers often say, “Iteration is repetition. Iteration is repetition. Iteration is repetition.” You get the point. To repeat is to iterate. To iterate is to repeat. We often call it a loop or looping.
Example: Walking. We don’t think much about it, but our bodies repeat the same sequence of actions whenever we walk. The basic visible action of walking breaks down to repeating the actions ‘left foot forward’, ‘right foot forward’. A school day often repeats a similar sequence of events.
Watch the video to better understand what a loop is when coding.
LOOPY LEARNING GOALS: I understand what ITERATION means. I understand why programs use loops. I can explain the differences between a while and a repeat loop and know when to use them.
A count or repeat loop executes (runs) a set number of times.
A while loop will execute as long as it's condition is true.
A forever loop will run forever!
Complete the assessment task
ANSWER THE QUESTIONS IN YOUR Website Journal
What type of staircase did you choose to build? Straight, Spiral, or Diagonal? Why?
What problems did you encounter? How did you solve them?
How did you use loops in your staircase?
Describe one point where you got stuck. Then discuss how you figured it out.
Include at least one screenshot of your staircase
Share your project to the web and include the URL in your diary