mBot D3 - Loops: Square Dance!
Description
Concepts: Students are introduced to a new fundamental coding concept, the Loop!
Activity: Students are first challenged to create a sequence that has their mBot drive in a perfect square on the floor. Next, students are challenged to identify the “repeating unit” and place this inside of a loop, making their program much more efficient. Extensions: Students are challenged to adjust their programs to have the mBot complete other shapes (e.g. triangles, stars).
Objectives
1. For students to understand and use a loop.
2. For students to understand why loops are a powerful tool in programming.
3. For students to practice pattern-recognition and breaking large problems down into their component parts.
Curriculum Connections Summary
- Ontario - Mathematics - Algebra (Coding)
- British Columbia - ADST
- Alberta - ICT
- Nova Scotia - ICT
Find Out More
mbot is the best of both worlds, transitioning students from Scratch Blocks to Text Code