2017-06-28 10:49:20 +02:00
|
|
|
|
# Iteration & Looping
|
|
|
|
|
|
2017-08-01 14:49:18 +02:00
|
|
|
|
![Guitar Picture](/static/courses/csintro/iteration/guitar.jpg)
|
|
|
|
|
|
2017-06-28 10:49:20 +02:00
|
|
|
|
This lesson introduces the concept of looping and iteration. Presents the 'While' block as a combination of an iteration and a conditional statement.
|
|
|
|
|
|
2017-07-06 09:05:42 +02:00
|
|
|
|
## Lesson objectives
|
2017-06-28 10:49:20 +02:00
|
|
|
|
|
|
|
|
|
Students will...
|
|
|
|
|
* Understand the value of iteration in programming
|
|
|
|
|
* Understand looping as a form of iteration
|
|
|
|
|
* Learn how and when to use the Looping blocks ‘repeat’, ‘while’, and ‘for’
|
|
|
|
|
* Apply the above knowledge and skills to create a unique program that uses iteration and looping as an integral part of the program
|
|
|
|
|
|
2017-07-06 09:05:42 +02:00
|
|
|
|
## Lesson structure
|
2017-06-28 10:49:20 +02:00
|
|
|
|
|
|
|
|
|
* Introduction: Lather. Rinse. Repeat.
|
|
|
|
|
* Unplugged Activity: Walk a Square pseudocode
|
2017-07-10 14:35:39 +02:00
|
|
|
|
* micro:bit Activities: Code a sprite to walk a Square, travelling light, micro:bit alarm!
|
2017-06-28 10:49:20 +02:00
|
|
|
|
* Project: Get Loopy!
|
|
|
|
|
* Project Mods: Use servo motors to add a motion element to the project
|
|
|
|
|
* Assessment: Rubric
|
|
|
|
|
* Standards: Listed
|
|
|
|
|
|
|
|
|
|
## Lesson plan
|
|
|
|
|
|
|
|
|
|
1. [**Overview**: Iteration and looping](/courses/csintro/iteration/overview)
|
|
|
|
|
2. [**Unplugged**: Walk a square](/courses/csintro/iteration/unplugged)
|
|
|
|
|
3. [**Activity**: Loops demos](/courses/csintro/iteration/activity)
|
|
|
|
|
4. [**Project**: Get loopy](/courses/csintro/iteration/project)
|
|
|
|
|
|
|
|
|
|
## Related standards
|
|
|
|
|
|
|
|
|
|
[Targeted CSTA standards](/courses/csintro/iteration/standards)
|