1 of 9

1

Expanding Computer Science Education to ALL Students

2 of 9

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

3 of 9

Verse with Loops!

3

Loop 10

Expanding Computer Science Education to ALL Students

4 of 9

Chicken Dance steps without loops

4

Chorus:

Expanding Computer Science Education to ALL Students

5 of 9

5

Expanding Computer Science Education to ALL Students

6 of 9

Loops

6

Expanding Computer Science Education to ALL Students

7 of 9

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

8 of 9

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

9 of 9

Make Your Own Dance

9

Expanding Computer Science Education to ALL Students