Skip to content

Unit of work

Getting active

Computational thinking, Programming, Sciences | MakeCode | 7-11 yrs

Lesson 5

Programming an activity picker

Introduction

Pupils apply their understanding of variables and random numbers by writing, testing and debugging a program to use micro:bit as a family activity selector, following their algorithm. They then evaluate their work.

Learning objectives

  • To debug programs involving random number variables
  • To write programs that use random number variables
  • To evaluate a solution effectively

You will need

Downloadable resources:

  • Lesson plan
  • Lesson slides
  • Student handouts
  • HEX files
    • images predictions
    • activity selector example
    • activity selector support

Other resources:

MakeCode editor, student work from previous lesson, printouts of slides, micro:bits (optional)

Lesson plan