Qahbvjo2srgfxcmb9yrb

mBot E4 - Conditionals: Afraid of the Dark!

Description

Concepts: Students take conditionals a step further and are introduced to IF-THEN-ELSE statements and defining conditions using an mBot sensor. Activity: Students create an algorithm that uses the ambient light sensor on the mBot. When the lights are on, the mBot does a calm sequence of commands. However, when the lights go out the mBot goes crazy with a sequence of erratic commands!


Objectives

For students to understand the definition and utility of IF-statements in computer programming

For students to create an algorithm using IF-statements that allows the mBot to react to its environment

For students to consider the power of this programming tool in daily life



Find Out More


mBot
mBot

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