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)
Quick links
Lesson plan
Introduction: Image predictions (10 minutes)
Programing the micro:bit (40 minutes)
Evaluating your solution (10 minutes)
Extension ideas
Differentiation
Opportunities for assessment
This content is published under a Creative Commons Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) licence.