Unit: Inputs, Outputs, Loops, and Debugging (Computing, Grade 3)
Unreviewed AI draft. Written by Gemini 4 Argon (2026-11-04). No human teacher has reviewed this unit. All content is CC0 1.0 Public Domain.
Overview
Why does a toaster pop up when the timer finishes, or why does a video game character jump only when you press a button? Every computing device—and many everyday machines—takes in inputs from the outside world, follows a step-by-step algorithm (including loops and if–then conditionals), and produces outputs.
Across five 45-minute unplugged lessons, Grade 3 students act as "human computers" and "programmers" using only index cards, masking tape grids, pencils, and classroom objects. Students classify inputs and outputs, write exact grid-navigation algorithms (cross-linked with Grade 3 Society's Maps, routes, and places), compress repetitive step lists using REPEAT loops, evaluate IF ... THEN ... ELSE condition cards, and systematically find and fix intentional bugs in broken paper programs.
Prior knowledge
Learning goals
By the end of this unit, a student can:
- Identify at least two inputs and two outputs for a familiar machine or computer program, and explain what rule happens in the middle (Lesson 1).
- Write and execute a step-by-step algorithm (
FORWARD 1, TURN LEFT, TURN RIGHT, PICK UP) on a 5×5 grid without skipping steps or assuming unstated context (Lesson 2).
- Rewrite a repetitive sequence of instructions using a numbered
REPEAT n TIMES loop and verify that both versions reach the exact same square (Lesson 3).
- Trace an algorithm containing
IF ... THEN ... ELSE conditional branches against different starting conditions and predict the exact outcome (Lesson 4).
- Locate the exact line where a buggy algorithm diverges from its intended goal (debugging), classify the bug (wrong direction, off-by-one count, or missing step), and test a repair (Lesson 5).
Lesson sequence
| Lesson |
Title |
Time |
Core idea |
| Lesson 1 |
What Goes In, What Comes Out: Inputs, Processing, and Outputs |
45 min |
Machines and programs take inputs, apply a rule (processing), and produce outputs |
| Lesson 2 |
Step by Step: Writing Exact Grid Algorithms |
45 min |
Computers follow instructions literally in order; missing or vague steps cause wrong results |
| Lesson 3 |
Doing It Again: REPEAT Loops and Pattern Compression |
45 min |
A loop repeats a group of steps a set number of times so programs stay short and clear |
| Lesson 4 |
Making Choices: IF ... THEN ... ELSE Conditionals |
45 min |
Conditionals let an algorithm check a true/false question and choose between two paths |
| Lesson 5 |
Bug Hunters: Finding and Fixing Broken Algorithms |
45 min |
Debugging means tracing a program step by step, comparing actual vs. expected state, and fixing the fault |
Materials for the whole unit
No computers or tablets are required. Everything runs unplugged:
- Paper, pencils, and 5–10 blank index cards per student pair
- Masking tape or chalk to mark one 5×5 floor grid (or printed 5×5 tabletop grids with coins/erasers as robot tokens)
- Printed or hand-written instruction cards (
FORWARD 1, TURN LEFT, TURN RIGHT, REPEAT, IF / ELSE)
Assessment summary
Each lesson ends with a 3-question exit check with worked answers. In Lesson 5, student pairs complete a 3-bug diagnostic repair sheet where they circle the exact failing line, write the corrected instruction, and verify the fix on a 5×5 grid.
Sources
These are general references that a teacher can use to check definitions and historical context. All links were checked to load on 2026-11-04.
- Input–process–output (IPO) model: https://en.wikipedia.org/wiki/IPO_model
- Algorithm: https://en.wikipedia.org/wiki/Algorithm
- Control flow — Loops (
REPEAT): https://en.wikipedia.org/wiki/Control_flow#Loops
- Conditional (
IF ... THEN ... ELSE): https://en.wikipedia.org/wiki/Conditional_(computer_programming)
- Debugging (including Grace Hopper's 1947 Harvard Mark II moth logbook entry): https://en.wikipedia.org/wiki/Debugging
- Bell, T., Witten, I. H., & Fellows, M. (2015). CS Unplugged (background reference for unplugged grid-programming pedagogy; all text, grid maps, and problems in this unit are newly written from scratch under CC0): https://www.csunplugged.org/
Known gaps and cautions
- Unreviewed AI draft: This unit has not yet been reviewed by a human classroom teacher or tested with Grade 3 students.
- Relative vs. cardinal turns on a grid: In Lesson 2,
TURN LEFT and TURN RIGHT rotate the robot 90 degrees in place on its current square without moving it forward, matching turtle graphics and floor robots. Some students initially expect TURN RIGHT to also step one square to the right; Lesson 2 highlights this explicitly as a common misconception and recommends placing a small paper arrow on the token to show which way the robot is facing.
- Count-controlled loops only: Lesson 3 introduces fixed count-controlled loops (
REPEAT n TIMES). Condition-controlled loops (REPEAT UNTIL / WHILE) and nested loops are intentionally left for Grades 4–5 (units/computing/progression.md) so Grade 3 students first master single-level loop unrolling and step counting.
- Single-condition branches: Lesson 4 uses single
IF ... THEN ... ELSE checks evaluated at the moment the robot reaches a square. Compound boolean logic (AND, OR, NOT) is deferred to Grade 6 (Binary, pixels, logic gates, and packet switching).