Cambridge Primary Computing Book 3 - Unit 1.1 & 1.
2 Notes and Exercises
Unit 1.1: Everyday Algorithms
Learning Goals:
- Understand what an algorithm is.
- Follow, edit, and debug step-by-step instructions.
- Use loops to simplify and shorten algorithms.
Key Concepts:
- Algorithm: A set of instructions to solve a task.
- Debugging: Fixing mistakes in algorithms.
- Loops: Repeating steps to make code simpler.
Sample Activities:
1. Unplugged Algorithm: Write steps to brush your teeth.
Example:
1. Pick up toothbrush
2. Open toothpaste cap
3. Squeeze toothpaste onto brush
4. Brush for 2 minutes
5. Rinse and put away
2. Debugging Example:
Problem:
Turn left
Move forward x3
Correction:
Turn right
Move forward x3
3. Loop Practice:
Instead of writing:
Move 10 steps x4
Use:
Repeat 4 times: Move 10 steps
Unit 1.2: Inputs and Outputs
Learning Goals:
- Understand how inputs and outputs work in digital devices.
Key Concepts:
- Input: Action the computer receives (e.g. button press, mouse click)
- Output: Result shown by the computer (e.g. screen display, sound)
Sample Scratch Activities:
1. Say something when spacebar is pressed:
when [space] key pressed
say [Hello!] for 2 seconds
2. Change costume when sprite is clicked:
when sprite clicked
next costume
Sample micro:bit Activities (MakeCode):
on button A pressed: show "✓"
1. Button A = Tick, Button B = Cross
on button B pressed: show "✗"
2. Shake to say Hello:
on shake: show "Hello"
Extra Practice Questions
1. What is an algorithm?
2. What does “debugging” mean?
3. Give an example of an input and output in real life.
4. How can you use a loop to shorten an algorithm?