
This Key Stage 2 computing lesson introduces pupils to algorithms and debugging through the well‑known Jam Sandwich Bot activity. Designed for Years 3–4, the session helps children understand how precise instructions work in programming and supports key computing objectives in a practical, memorable way. The lesson is suitable for observations, interviews or short 20–45 minute sessions.
What’s Included:
✔ Detailed lesson plan with clear structure and timings
✔ PowerPoint presentation introducing key vocabulary
✔ Debugging worksheet for paired or independent work
✔ Printable keyword posters for display or recap
Lesson Overview:
★ Starter: Introduces key computing terms and explores what an algorithm is.
★ Main: Pupils “program” the teacher to make a jam sandwich, highlighting the need for clear, logical instructions. This is followed by a debugging task where pupils correct simple algorithms.
★ Plenary: Class reflection on what worked well, common errors and how debugging improves accuracy.
Why It’s Useful:
✔ Differentiated for mixed‑ability classes
✔ Supports KS2 computing and programming objectives
✔ Fully resourced for 20–45 minute lessons
✔ Printable and editable materials
Ideal for KS2 computing lessons on algorithms, interview or observation lessons, problem‑solving sessions or as an introduction to programming. Suitable for Year 3 and Year 4, with resources adaptable across KS2.
You may also be interested in…
★ KS2 Computing – Spotting Fake News and Misinformation Outstanding Lesson
★ KS2 Computing – Artificial Intelligence and Ethics Unit (3 Lessons)
★ KS2 Computing – AI, Ethics and Misinformation Unit - 6 Outstanding Lessons
Search Tags
KS2 computing | algorithms lesson | debugging KS2 | jam sandwich activity | Year 3 computing | Year 4 programming | outstanding computing lesson | interview lesson KS2 | logical thinking KS2
Something went wrong, please try again later.
This resource hasn't been reviewed yet
To ensure quality for our reviews, only customers who have purchased this resource can review it
Report this resourceto let us know if it violates our terms and conditions.
Our customer service team will review your report and will be in touch.