1
Expanding Computer Science Education to ALL Students
The Chicken Dance!
2
Let’s do the chicken dance!
What are the steps (algorithm) for this dance?
Expanding Computer Science Education to ALL Students
Verse with Loops!
3
Loop 10
Expanding Computer Science Education to ALL Students
Chicken Dance steps without loops
4
Chorus:
Expanding Computer Science Education to ALL Students
5
Expanding Computer Science Education to ALL Students
Loops
6
Expanding Computer Science Education to ALL Students
Loop: process of repeating steps
Why are loops important?
Loops allows algorithms such as the Chicken Dance to be simplified.
Less steps are needed, so the algorithm becomes shorter and easier to read.
7
Expanding Computer Science Education to ALL Students
Types of Loops in Scratch
Count-controlled (for) loops repeat the same steps a specific number of times, regardless of the outcome.
Condition-controlled loops will keep repeating the steps over and over, until it gets a specific result.
Infinite (forever) loops repeat the same steps endlessly, and it has no terminating condition
8
Expanding Computer Science Education to ALL Students
Make Your Own Dance
9
Expanding Computer Science Education to ALL Students