mBot: Iteration Basics (Gr. 5-6)

Description

In this lesson, students will be introduced to the concept of iteration. Students will design algorithms to compose a song in mBlock. In Phase 1, Students will identify loop bodies. Nested loops will be then introduced. In Phase 2 and the following section, students will translate and program the song, Frère Jacques. Students will be given the lyrics and notes of the song and tasked with programming their mBots to “sing” this song by utilizing nested loops.

Objectives

  • Explain the meaning of iteration associated with the relevant real-life examples.
  • Identify the situation whether to use count-controlled loops or condition-controlled loops in order to improve the efficiency of an executable program.
  • Select appropriate programming blocks and looping structures to make mBot play songs.

Curriculum Connections Summary

  • Ontario - Mathematics - Algebra (Coding) & Science
  • Quebec - Science
  • New Brunswick - Science
  • Nova Scotia - Science & ICT
  • Alberta - Science & ICT
  • British Columbia - Science & ADST
  • Manitoba - Science
  • Prince Edward Island - Science
  • Saskatchewan - Science
  • Newfoundland & Labrador - Science
  • Yukon Territories - Follow's B.C.'s Curriculum
  • Northwest Territories - Follows Alberta's Curriculum
  • Nunavut - Follows Alberta's Curriculum


Find Out More


mBot
mBot

mbot is the best of both worlds, transitioning students from Scratch Blocks to Text Code