Tactiverge · Classroom-in-a-Box programme · Print view: use your browser’s Print command (Ctrl+P or Cmd+P). Every worksheet starts on a new page.

Twelve-week computational engineering

Turn formulas, sensor logs and machine rules into small Python programs, then test them against simulations the way engineers do.

Full editionLevel 2 · Builder12 weeks24 sessions × 60 minAbout 24 teaching hours

Online page: https://tactiverge.win/classroom-in-a-box/programmes/twelve-week-computational-engineering/

Supervision and safety

Educator guide

Twenty-four one-hour sessions over twelve weeks. Fourteen sessions teach Python through engineering problems (battery runtime, sensor logs, thresholds, traffic lights, a heater controller), using the browser-based Code Lab. Ten sessions reuse paper-first pack sessions from The maths behind machines, Machines that sense and decide and Signals in a noisy world, so learners have the maths and the ideas before they code them. Three Mission Labs and a Nexus project give learners a simulated system to improve and defend with evidence.

Who it is for: Learners who can already use simple formulas, read a graph and follow a flowchart (Builder level). No coding experience is needed. Suits a school elective, a library code club or a community programme with access to devices.

Group size: 6–24 learners, working in pairs at a device. One adult can run it for up to 24 if a second adult or a confident helper can circulate during coding time.

Before this programme: Learners should be comfortable with units, multiplying and dividing decimals, and reading a simple table. The Maths behind machines sessions in this programme revise the maths they need.

By the end, learners can

Why this order

Each coding skill arrives just after learners have met the idea on paper: units before formulas in code, thresholds before if-statements, noisy readings before loops over logs, closed loops before controller models. The last two weeks join the skills in one project, so nothing in the project is brand new.

Before you start

Every session

  1. Start with a two-minute recap question on paper.
  2. Show the idea on one screen, then pairs try it: one types, one checks, and they swap halfway.
  3. Finish with the worksheet and one exit question; collect work rather than ranking it.

Honest time estimate

24 hours of teaching (24 × 60 minutes). Plan about 25 minutes of preparation per session, more for the first coding sessions and the project weeks: roughly 10–12 hours of preparation across the programme. Timings assume pairs at devices and a group of up to 24; first-time coders often need longer for the first three coding sessions.

Preparation: about 25 minutes per session.

Staffing

One adult who is willing to learn the Python alongside the group; no programming background is assumed, but trying each task first matters. A second adult or helper is strongly recommended for groups over 16 during coding time.

Adapting it

Curriculum map

WeekThemeSessionsBy the end of the week
1Why engineers compute1. Why engineers compute
2. A number without a unit is a mystery
Describe a calculation as a sequence of steps and say why units matter in every one.
2First programs3. Your first program: battery runtime
4. Variables that track a changing machine
Write and run a program that stores values in variables and prints a battery runtime.
3Formulas into code5. Translate a formula into Python
6. Levers: small push, big lift
Translate a formula, including a lever, into Python and check it by estimation.
Evidence: First self-checked calculation program.
4Ratios and decisions7. Gear ratios: speed or strength
8. Decisions from measurements
Use if, elif and else to act on a measurement, and connect gear ratios to code.
5Thresholds and testing edges9. Thresholds: when is it 'too cold'?
10. Test the edges: a heater that behaves
Choose a threshold, test the boundary values and improve a heater controller in a Mission Lab.
6Loops over readings11. Loops over readings
12. Rounding and jitter
Summarise a sensor log with a loop and explain jitter and rounding.
7Filters and functions13. Filters: smooth but late
14. Functions: package a calculation
Package a calculation as a function and explain why a moving average is smooth but late.
8Debugging and coordinates15. Hunting bugs like an engineer
16. Robots on a grid
Read a traceback, hunt a logic bug and place a robot on a grid.
Evidence: Bug-hunt log with one fixed bug.
9Triangles and state machines17. Triangles that reach
18. A state machine in code
Use trigonometry for reach and write a state machine for a traffic signal.
10Closing the loop in code19. Closing the loop
20. Models are functions: a controller you can test
Model a controller as a function and compare gains in a simulation.
11Evidence from many runs21. Did it pass? Averages and spread
22. Evidence from many runs: the Noisy Factory
Use averages and spread to judge a design, and defend a choice in the Noisy Factory.
12Project: the smart junction23. Project: build the smart junction
24. Project: test, document and present
Build, test and present a junction controller with evidence and honest limits.
Evidence: Project presentation and README.

Lesson plans

Session 1: Why engineers compute Week 160 minOne shared screen

Objectives

Timing

MinutesPartWhat happens
10HookHow long will a torch run on a full charge? Pairs list everything they would need to know.
20Flowchart the calculationPairs turn their list into a flowchart with boxes, a decision diamond and a loop.
10Look at the Code LabShow one tiny program on a single screen and point out that each line is one step of a flowchart.
15WorksheetQuestions 1–3.
5Exit questionName one calculation you would rather a computer did, and why.

Activity: Flowchart a battery check 20 minunplugged

Materials: Paper, Pencils

  1. Pairs write the steps for working out how many hours a battery lasts, one step per line.
  2. Redraw the steps as a flowchart: rectangles for actions, a diamond for a yes/no question.
  3. Add a loop: keep checking the charge every hour until it is below 10 %.
  4. Swap with another pair, who follows the flowchart exactly and marks any step that is unclear.
Safety and supervision
  • Paper and pencils stay on the desks; hand sheets out rather than sliding them.
  • Paper edges can cut: hand sheets out rather than sliding them across desks.
  • Pencils are for writing and drawing only, never as levers, axles or pointers near faces.
  • A named adult from the host organisation supervises every session, follows that organisation's own safeguarding policy, and stays in the room throughout. No activity needs learners to go online alone, create an account or share personal information.

Differentiation

Discussion prompts

Online lessons (optional)

Interactive laboratories and their offline alternatives

Other editions

Worksheet: see “Worksheet 1” at the end. Teacher solutions are on the protected educator page, not in this document.

Session 2: A number without a unit is a mystery Week 160 minComputer optional

From the pack “The maths behind machines”, session 1. Units come first: every program in this course carries units in its variable names, so learners need the habit before they start coding next week.

Objectives

Timing

MinutesPartWhat happens
10HookWrite '12' on the board. Ask: is that big? Only a unit can tell us.
20Estimation stationsRun the estimation stations activity.
15Check and compareMeasure with paper rulers and compare with estimates.
10WorksheetQuestions 1–3.
5Exit questionName one unit and something it measures.

Activity: Estimation stations 20 minunplugged

Materials: Paper, Coins (or paper counters), Pencils

  1. Set up four stations: length of a desk, mass of a pile of coins (compare with a known coin), number of sheets in a pile, time for ten slow claps.
  2. Pairs estimate each quantity and write it with a unit.
  3. Then measure or count where possible, and record the difference.
Safety and supervision
  • Coins stay at their station and are counted back in. Learners walk between stations.
  • Paper edges can cut: hand sheets out rather than sliding them across desks.
  • Coins are small objects: count them out and back in. Use flat paper counters instead with any group where someone may put small objects in their mouth.
  • Pencils are for writing and drawing only, never as levers, axles or pointers near faces.
  • A named adult from the host organisation supervises every session, follows that organisation's own safeguarding policy, and stays in the room throughout. No activity needs learners to go online alone, create an account or share personal information.

Differentiation

Discussion prompts

Online lessons (optional)

Interactive laboratories and their offline alternatives

Other editions

Worksheet: see “Worksheet 2” at the end. Teacher solutions are on the protected educator page, not in this document.

Session 3: Your first program: battery runtime Week 260 minNeeds a computer

Objectives

Timing

MinutesPartWhat happens
5RecapWhy does a number need a unit?
10DemoType a two-line program that prints a battery runtime; run it; change one number and run it again.
25Pairs codePairs write the runtime program in the Code Lab, then change capacity and current to answer three what-if questions.
15WorksheetQuestions 1–3, including a trace table.
5Exit questionWhat happens if you swap two lines?

Activity: Battery runtime in Python 25 minonline-optional

  1. Open the Code Lab and create variables for capacity (mAh) and current (mA), with the unit in each name.
  2. Divide capacity by current and print the runtime in hours.
  3. Change the current to double its value and predict the new runtime before running.
  4. Swap roles: the checker now types and the typist checks.

Differentiation

Discussion prompts

Online lessons (optional)

Interactive laboratories and their offline alternatives

Other editions

Worksheet: see “Worksheet 3” at the end. Teacher solutions are on the protected educator page, not in this document.

Session 4: Variables that track a changing machine Week 260 minNeeds a computer

Objectives

Timing

MinutesPartWhat happens
5RecapTrace a two-line program on the board.
15Human variablesRun the labelled-box activity: each variable is a sheet of paper that can hold one value at a time.
20Pairs codePairs write a program that tracks a water tank level over four updates and prints each level.
15WorksheetQuestions 1–3.
5Exit questionWhich type would you use for a temperature, and why?

Activity: Labelled boxes 15 minunplugged

Materials: Paper, Pencils

  1. Three volunteers hold a sheet labelled level, inflow and outflow.
  2. The teacher reads lines such as level = level + inflow; the holder rubs out and writes the new value.
  3. The class predicts each new value before the holder writes it.
  4. Discuss what happened to the old value each time.
Safety and supervision
  • Paper and pencils stay on the desks; hand sheets out rather than sliding them.
  • Paper edges can cut: hand sheets out rather than sliding them across desks.
  • Pencils are for writing and drawing only, never as levers, axles or pointers near faces.
  • A named adult from the host organisation supervises every session, follows that organisation's own safeguarding policy, and stays in the room throughout. No activity needs learners to go online alone, create an account or share personal information.

Activity: Tank tracker 20 minonline-optional

  1. Set level_litres to 50 and inflow and outflow rates in litres per minute.
  2. Update the level four times, printing it after each update.
  3. Change the outflow so the tank empties and spot when the level goes below zero.

Differentiation

Discussion prompts

Online lessons (optional)

Interactive laboratories and their offline alternatives

Other editions

Worksheet: see “Worksheet 4” at the end. Teacher solutions are on the protected educator page, not in this document.

Session 5: Translate a formula into Python Week 360 minNeeds a computer

Objectives

Timing

MinutesPartWhat happens
5RecapWhich type is a measured length?
10Estimate firstEstimate the time to travel 120 m at 1.5 m/s, then compute it.
25Pairs codePairs code three formulas (speed, power, area of a circle with math.pi) and compare each with their estimate.
15WorksheetQuestions 1–3.
5Exit questionOne sign that a computed answer is wrong.

Activity: Formula translator 25 minonline-optional

  1. Write each formula on paper first, with units, then estimate the answer.
  2. Code it in the Code Lab with descriptive variable names.
  3. Compare the printed result with the estimate; if they differ by more than double, look for the bug.
  4. Use import math for the circle area and print the result rounded to two decimal places.

Differentiation

Discussion prompts

Online lessons (optional)

Interactive laboratories and their offline alternatives

Other editions

Worksheet: see “Worksheet 5” at the end. Teacher solutions are on the protected educator page, not in this document.

Session 6: Levers: small push, big lift Week 360 minComputer optional

From the pack “The maths behind machines”, session 2. The lever rule is a formula learners can code next: after the paper lift, ask pairs to write the lever balance as one line of Python for homework or the next coding session.

Objectives

Timing

MinutesPartWhat happens
5HookHow can a small child balance a big adult on a see-saw?
25Coin leverRun the coin-lever activity.
15Find the patternGroups compare results and look for a rule.
10WorksheetQuestions 1–3.
5Wrap-upWhere are levers in the room?

Activity: Coin lever 25 minpaper-build

Materials: Cardboard (from packaging), Coins (or paper counters), Pencils

  1. Use a pre-cut cardboard strip about 30 cm long with marks every 2 cm, and a folded cardboard triangle as the pivot.
  2. Balance the strip on the pivot at its middle.
  3. Put 2 coins at one mark on the left. Find where 1 coin must go on the right to balance.
  4. Try other combinations and record coins × distance on each side.
Safety and supervision
  • The pivot is folded cardboard (no pencils as pivots). Coins are counted back in at the end.
  • An adult pre-cuts any cardboard before the session. Learners fold, slot and stack only; no blades or scissors in learners' hands.
  • Coins are small objects: count them out and back in. Use flat paper counters instead with any group where someone may put small objects in their mouth.
  • Pencils are for writing and drawing only, never as levers, axles or pointers near faces.
  • A named adult from the host organisation supervises every session, follows that organisation's own safeguarding policy, and stays in the room throughout. No activity needs learners to go online alone, create an account or share personal information.

Differentiation

Discussion prompts

Online lessons (optional)

Interactive laboratories and their offline alternatives

Other editions

Worksheet: see “Worksheet 6” at the end. Teacher solutions are on the protected educator page, not in this document.

Session 7: Gear ratios: speed or strength Week 460 minComputer optional

From the pack “The maths behind machines”, session 3. Gear ratios are the second formula of the week; they also give the first decision in code (is the output faster or stronger?), which the next session builds on.

Objectives

Timing

MinutesPartWhat happens
10HookWhy does a bicycle have different gears?
25Paper gearsRun the paper gears activity.
10Ratio talkWrite each result as a ratio.
10WorksheetQuestions 1–3.
5Exit questionBig gear driving small gear: faster or slower?

Activity: Paper gears (string and circles) 25 minpaper-build

Materials: Cardboard (from packaging), String, Pencils

  1. Use two pre-cut cardboard circles, one twice the diameter of the other, each with a mark on its edge.
  2. Wrap a loop of string around both like a belt, laid flat on the desk.
  3. Turn the big circle once and count turns of the small one.
  4. Swap which one you turn and repeat.
Safety and supervision
  • The string loop lies flat on the desk and is never wrapped round fingers. Circles are pre-cut by an adult.
  • An adult pre-cuts any cardboard before the session. Learners fold, slot and stack only; no blades or scissors in learners' hands.
  • String stays below shoulder height and is never looped around necks, wrists or fingers. Use lengths under 1 metre unless an adult holds the ends.
  • Pencils are for writing and drawing only, never as levers, axles or pointers near faces.
  • A named adult from the host organisation supervises every session, follows that organisation's own safeguarding policy, and stays in the room throughout. No activity needs learners to go online alone, create an account or share personal information.

Differentiation

Discussion prompts

Online lessons (optional)

Interactive laboratories and their offline alternatives

Other editions

Worksheet: see “Worksheet 7” at the end. Teacher solutions are on the protected educator page, not in this document.

Session 8: Decisions from measurements Week 460 minNeeds a computer

Objectives

Timing

MinutesPartWhat happens
5RecapIs a gear ratio of 3 faster or stronger at the output?
10DemoA fan that turns on above 28 °C; trace it for three temperatures.
25Pairs codePairs write a machine guard: the motor may run only if the door is closed and the temperature is safe.
15WorksheetQuestions 1–3.
5Exit questionWhich is safer as a default: run or stop?

Activity: Interlock in code 25 minonline-optional

  1. Create door_closed (True or False) and temp_c.
  2. Write an if statement that prints RUN only when the door is closed and temp_c is below 60.
  3. Add elif and else branches that print why the machine stopped.
  4. Test four cases, one for each combination of door and temperature, and record the results in a table.

Differentiation

Discussion prompts

Online lessons (optional)

Interactive laboratories and their offline alternatives

Other editions

Worksheet: see “Worksheet 8” at the end. Teacher solutions are on the protected educator page, not in this document.

Session 9: Thresholds: when is it 'too cold'? Week 560 minComputer optional

From the pack “Machines that sense and decide”, session 4. Learners have just written if-statements; this paper session asks the harder question of where the threshold should go, which they test in code in the next session.

Objectives

Timing

MinutesPartWhat happens
10HookAsk: at what temperature should a heater switch on? Collect numbers and reasons.
20Threshold line-upRun the threshold line-up role-play.
15Rule writingPairs write rule cards for three machines.
10WorksheetQuestions 1–3.
5ShareTwo pairs read a rule aloud; the class tries to break it.

Activity: Threshold line-up 20 minrole-play

Materials: Paper

  1. Give each learner a paper card with a 'temperature' written on it (the teacher prepares cards from 5 to 30).
  2. The Controller chooses a threshold and calls: 'IF below my number THEN heater on ELSE heater off.'
  3. Learners holding a number below the threshold step forward ('heater on').
  4. Try three thresholds. For each, ask: who is too cold? Who wastes energy?
Safety and supervision
  • Learners step forward one pace only, in a straight line, with space between them.
  • Clear a walking space first, walk (never run), keep hands to yourself, and let anyone take a non-moving role (caller, recorder, judge) instead.
  • Paper edges can cut: hand sheets out rather than sliding them across desks.
  • A named adult from the host organisation supervises every session, follows that organisation's own safeguarding policy, and stays in the room throughout. No activity needs learners to go online alone, create an account or share personal information.

Differentiation

Discussion prompts

Online lessons (optional)

Interactive laboratories and their offline alternatives

Other editions

Worksheet: see “Worksheet 9” at the end. Teacher solutions are on the protected educator page, not in this document.

Session 10: Test the edges: a heater that behaves Week 560 minOne shared screen

Objectives

Timing

MinutesPartWhat happens
5RecapWhere would you put the frost threshold, and why?
15Boundary huntPairs list the values they would test for 'heater on below 5 °C' and explain each.
25Mission LabOn one screen or in pairs, run the Unstable Greenhouse Level 1: try one change at a time and record what happens.
10WorksheetQuestions 1–3.
5Exit questionWhat did the heater do that surprised you?

Activity: Boundary hunt 15 minunplugged

Materials: Paper, Pencils

  1. Write the rule on paper: heater on when temperature is below 5 °C.
  2. List test temperatures just below, exactly at and just above 5, plus one far away on each side.
  3. For each, write what the heater should do before anyone checks.
  4. Compare lists between pairs and agree which test is most likely to find a bug.
Safety and supervision
  • Paper and pencils stay on the desks; hand sheets out rather than sliding them.
  • Paper edges can cut: hand sheets out rather than sliding them across desks.
  • Pencils are for writing and drawing only, never as levers, axles or pointers near faces.
  • A named adult from the host organisation supervises every session, follows that organisation's own safeguarding policy, and stays in the room throughout. No activity needs learners to go online alone, create an account or share personal information.

Activity: Unstable Greenhouse, one change at a time 25 minonline-optional

  1. Open the Mission Lab and read the briefing aloud.
  2. Run the starting controller once and note the coldest temperature and how often the heater switches.
  3. Change only one setting, run again and record both numbers.
  4. Decide which change is better and write one sentence of evidence.

Differentiation

Discussion prompts

Online lessons (optional)

Interactive laboratories and their offline alternatives

Other editions

Worksheet: see “Worksheet 10” at the end. Teacher solutions are on the protected educator page, not in this document.

Session 11: Loops over readings Week 660 minNeeds a computer

Objectives

Timing

MinutesPartWhat happens
5RecapWhat does a boundary test check?
10DemoLoop over five temperatures and print each; then add a running total.
25Pairs codePairs compute the average, minimum and maximum of a twelve-reading log, then write a while loop that counts how many minutes a tank takes to fill.
15WorksheetQuestions 1–3.
5Exit questionWhen would a while loop never stop?

Activity: Sensor log summary 25 minonline-optional

  1. Paste the twelve readings into a list.
  2. Use a for loop with a running total to find the average; check it against a calculator.
  3. Track the smallest and largest values inside the same loop.
  4. Write a while loop that adds 4 litres a minute until a 30-litre tank is full and prints the minutes taken.

Differentiation

Discussion prompts

Online lessons (optional)

Interactive laboratories and their offline alternatives

Other editions

Worksheet: see “Worksheet 11” at the end. Teacher solutions are on the protected educator page, not in this document.

Session 12: Rounding and jitter Week 660 minComputer optional

From the pack “Signals in a noisy world”, session 3. Learners have just summarised a log; now they see why its readings jitter and round. Point back to last session's minimum and maximum: how much of that spread is noise?

Objectives

Timing

MinutesPartWhat happens
5HookA ruler marked only every 5 cm: how tall is your pencil?
25Coarse rulersRun the coarse-ruler activity.
15Noise or steps?Compare jitter between learners with rounding from the ruler.
10WorksheetQuestions 1–3.
5Wrap-upWhich would a finer ruler fix: noise or steps?

Activity: Coarse rulers 25 minunplugged

Materials: Paper, Pencils

  1. Make three paper rulers: marks every 5 cm, every 1 cm, and every 'half-fold' of a strip.
  2. Measure five objects with each ruler, rounding to the nearest mark.
  3. Five learners measure the same object with the 1 cm ruler; compare readings.
Safety and supervision
  • Measure objects on desks only; pencils for marking only.
  • Paper edges can cut: hand sheets out rather than sliding them across desks.
  • Pencils are for writing and drawing only, never as levers, axles or pointers near faces.
  • A named adult from the host organisation supervises every session, follows that organisation's own safeguarding policy, and stays in the room throughout. No activity needs learners to go online alone, create an account or share personal information.

Differentiation

Discussion prompts

Online lessons (optional)

Interactive laboratories and their offline alternatives

Other editions

Worksheet: see “Worksheet 12” at the end. Teacher solutions are on the protected educator page, not in this document.

Session 13: Filters: smooth but late Week 760 minComputer optional

From the pack “Signals in a noisy world”, session 4. A moving average is a loop over readings: after the paper filter, show that it is the same running total from session 11 applied to a sliding window.

Objectives

Timing

MinutesPartWhat happens
10HookA jittery thermometer: how do you see the real trend?
25Paper filterRun the paper moving-average activity.
10Bigger windowRepeat with a window of 5 and compare.
10WorksheetQuestions 1–3.
5ReflectWhen is a late answer worse than a noisy one?

Activity: Paper moving average 25 minunplugged

Materials: Paper, Pencils

  1. The teacher writes a noisy temperature series on the board (12 values with one sudden jump halfway).
  2. Make a window: fold a paper strip so that it shows three values at a time.
  3. Slide the window along; for each position write the average of the three values.
  4. Plot the raw and filtered values. Mark where each first 'notices' the jump.
Safety and supervision
  • Desk activity; paper strips are folded, not cut.
  • Paper edges can cut: hand sheets out rather than sliding them across desks.
  • Pencils are for writing and drawing only, never as levers, axles or pointers near faces.
  • A named adult from the host organisation supervises every session, follows that organisation's own safeguarding policy, and stays in the room throughout. No activity needs learners to go online alone, create an account or share personal information.

Differentiation

Discussion prompts

Online lessons (optional)

Interactive laboratories and their offline alternatives

Other editions

Worksheet: see “Worksheet 13” at the end. Teacher solutions are on the protected educator page, not in this document.

Session 14: Functions: package a calculation Week 760 minNeeds a computer

Objectives

Timing

MinutesPartWhat happens
5RecapWhy is a moving average late?
10DemoTurn the runtime calculation from session 3 into a function and call it three times.
25Pairs codePairs write average(readings) and in_range(value, low, high), then use both to check a log.
15WorksheetQuestions 1–3.
5Exit questionWhat makes a good function name?

Activity: A tidy log checker 25 minonline-optional

  1. Write average(readings) that returns the mean of a list.
  2. Write in_range(value, low, high) that returns True or False.
  3. Use both to print how many readings are out of range in the session 11 log.
  4. Test each function on its own with a case you can check in your head.

Differentiation

Discussion prompts

Online lessons (optional)

Interactive laboratories and their offline alternatives

Other editions

Worksheet: see “Worksheet 14” at the end. Teacher solutions are on the protected educator page, not in this document.

Session 15: Hunting bugs like an engineer Week 860 minNeeds a computer

Objectives

Timing

MinutesPartWhat happens
5RecapWhat does return do?
10Read the tracebackShow three error messages; pairs find the line number and the error type in each.
25Bug huntPairs get four short programs, each with one bug, and keep a bug log: symptom, hypothesis, test, fix.
15WorksheetQuestions 1–3.
5Exit questionWhich bug was hardest, and why?

Activity: Bug log 25 minonline-optional

  1. Run each buggy program and write the symptom in the bug log.
  2. Write a hypothesis: which line, and what is wrong with it.
  3. Change one thing only and run again; record whether the symptom changed.
  4. When it is fixed, add a test case that would catch the bug next time.

Differentiation

Discussion prompts

Online lessons (optional)

Interactive laboratories and their offline alternatives

Other editions

Worksheet: see “Worksheet 15” at the end. Teacher solutions are on the protected educator page, not in this document.

Session 16: Robots on a grid Week 860 minComputer optional

From the pack “The maths behind machines”, session 4. Coordinates prepare the robot-arm and traffic work ahead; pairs who finish can store a list of grid points and print them with a loop.

Objectives

Timing

MinutesPartWhat happens
10HookHow would you tell a robot exactly where to go?
25Floor grid robotRun the floor grid robot role-play.
10Below zeroExtend the grid to negative coordinates.
10WorksheetQuestions 1–3.
5Wrap-upWhy does the order of (x, y) matter?

Activity: Floor grid robot 25 minrole-play

Materials: Paper

  1. Lay paper sheets on the floor as a 5 × 5 grid, labelled with x along one side and y along the other.
  2. One learner is the Robot, starting at (0, 0).
  3. The Navigator reads coordinates from a route card; the Robot walks to each point.
  4. Extend the grid with sheets marked −1 and −2 and try a route that crosses zero.
Safety and supervision
  • Weigh the paper sheets down at the corners with books so they don't slide. The Robot walks slowly, one learner on the grid at a time.
  • Clear a walking space first, walk (never run), keep hands to yourself, and let anyone take a non-moving role (caller, recorder, judge) instead.
  • Paper edges can cut: hand sheets out rather than sliding them across desks.
  • A named adult from the host organisation supervises every session, follows that organisation's own safeguarding policy, and stays in the room throughout. No activity needs learners to go online alone, create an account or share personal information.

Differentiation

Discussion prompts

Online lessons (optional)

Interactive laboratories and their offline alternatives

Other editions

Worksheet: see “Worksheet 16” at the end. Teacher solutions are on the protected educator page, not in this document.

Session 17: Triangles that reach Week 960 minComputer optional

From the pack “The maths behind machines”, session 5. Trigonometry gives the reach of an arm; connect it to the math module from session 5 (math.sin and math.cos use radians).

Objectives

Timing

MinutesPartWhat happens
10HookA robot arm is a triangle in disguise. Where is the triangle?
25String armRun the string arm activity.
10Ratios of sidesCompare across/along and up/along for different angles.
10WorksheetQuestions 1–3.
5Exit questionLonger arm, same angle: what changes?

Activity: String arm 25 minunplugged

Materials: Paper, String, Pencils

  1. Hold one end of a 20 cm string on a paper grid at (0, 0) with a finger.
  2. Pull the string straight at a chosen angle (use a drawn paper protractor fan) and mark where the end lands.
  3. Measure how far across and how far up the end is.
  4. Divide 'up' by the string length, and 'across' by the string length, for three angles.
Safety and supervision
  • Use short string (20 cm). Hold it with fingers flat on the paper; never loop it round fingers.
  • Paper edges can cut: hand sheets out rather than sliding them across desks.
  • String stays below shoulder height and is never looped around necks, wrists or fingers. Use lengths under 1 metre unless an adult holds the ends.
  • Pencils are for writing and drawing only, never as levers, axles or pointers near faces.
  • A named adult from the host organisation supervises every session, follows that organisation's own safeguarding policy, and stays in the room throughout. No activity needs learners to go online alone, create an account or share personal information.

Differentiation

Discussion prompts

Online lessons (optional)

Interactive laboratories and their offline alternatives

Other editions

Worksheet: see “Worksheet 17” at the end. Teacher solutions are on the protected educator page, not in this document.

Session 18: A state machine in code Week 960 minNeeds a computer

Objectives

Timing

MinutesPartWhat happens
5RecapWhat does a robot arm need to know to reach a point?
15Role-play the signalThree learners are the red, green and amber states; a caller announces events and the class says which state comes next.
20Pairs codePairs code the signal with a state variable and if/elif branches, stepping it for 12 ticks.
15WorksheetQuestions 1–3.
5Exit questionWhich transition must never happen at a real junction?

Activity: Human traffic signal 15 minrole-play

Materials: Paper

  1. Three volunteers hold a sheet marked RED, GREEN or AMBER; only the current state stands.
  2. The caller announces 'timer done'; the class says which state is next and that learner stands.
  3. Try an illegal event, such as green straight to red, and discuss why the design forbids it.
  4. Draw the state diagram on the board from what happened.
Safety and supervision
  • Volunteers stand and sit in place; nobody moves around the room.
  • Clear a walking space first, walk (never run), keep hands to yourself, and let anyone take a non-moving role (caller, recorder, judge) instead.
  • Paper edges can cut: hand sheets out rather than sliding them across desks.
  • A named adult from the host organisation supervises every session, follows that organisation's own safeguarding policy, and stays in the room throughout. No activity needs learners to go online alone, create an account or share personal information.

Activity: Signal in Python 20 minonline-optional

  1. Create state = 'RED' and a tick counter.
  2. Use if/elif to move to the next state when the time in the current state reaches its limit.
  3. Loop for 12 ticks and print the state each tick.
  4. Check the printed sequence against the state diagram from the role-play.

Differentiation

Discussion prompts

Online lessons (optional)

Interactive laboratories and their offline alternatives

Other editions

Worksheet: see “Worksheet 18” at the end. Teacher solutions are on the protected educator page, not in this document.

Session 19: Closing the loop Week 1060 minComputer optional

From the pack “Machines that sense and decide”, session 5. The closed loop on paper is the idea the next session turns into a function: the controller reads an error and returns an action.

Objectives

Timing

MinutesPartWhat happens
10HookToaster versus thermostat: which one checks its own work?
20The human thermostatRun the human thermostat role-play.
15Open or closed?Groups sort machine cards into open loop and closed loop.
10WorksheetQuestions 1–3.
5Exit questionName one closed-loop machine at home.

Activity: The human thermostat 20 minrole-play

Materials: Paper, Coins (or paper counters)

  1. The 'room' is a paper sheet. Coins on it are 'heat'. One coin is removed every ten seconds by the Weather (the teacher).
  2. Open loop: the Heater adds one coin every ten seconds no matter what. After two minutes, count the coins.
  3. Closed loop: a Thermometer counts the coins and tells the Heater 'add' below 5 coins and 'stop' at 5 or more.
  4. Compare the two runs. Which kept the room steadier?
Safety and supervision
  • Count coins out and back in. Only the Heater, Thermometer and Weather touch the coins.
  • Clear a walking space first, walk (never run), keep hands to yourself, and let anyone take a non-moving role (caller, recorder, judge) instead.
  • Paper edges can cut: hand sheets out rather than sliding them across desks.
  • Coins are small objects: count them out and back in. Use flat paper counters instead with any group where someone may put small objects in their mouth.
  • A named adult from the host organisation supervises every session, follows that organisation's own safeguarding policy, and stays in the room throughout. No activity needs learners to go online alone, create an account or share personal information.

Differentiation

Discussion prompts

Online lessons (optional)

Interactive laboratories and their offline alternatives

Other editions

Worksheet: see “Worksheet 19” at the end. Teacher solutions are on the protected educator page, not in this document.

Session 20: Models are functions: a controller you can test Week 1060 minNeeds a computer

Objectives

Timing

MinutesPartWhat happens
5RecapWhat makes a loop 'closed'?
10DemoWrite action(error, gain) that returns gain × error, and step a heated room for five ticks.
25Pairs code and simulatePairs try three gains in code, then the same three in the PID step-response simulation, and record overshoot and time to settle.
15WorksheetQuestions 1–3.
5Exit questionWhat does the model leave out about a real room?

Activity: Gain experiment 25 minonline-optional

  1. Write a function action(error, gain) and a loop that updates the temperature by the action each tick.
  2. Run gains of 0.2, 0.5 and 1.2 and record the temperature after ten ticks.
  3. Open the PID step-response simulation and set the same proportional gains.
  4. Write which gain you would choose and one thing the simple model cannot show.

Differentiation

Discussion prompts

Online lessons (optional)

Interactive laboratories and their offline alternatives

Other editions

Worksheet: see “Worksheet 20” at the end. Teacher solutions are on the protected educator page, not in this document.

Session 21: Did it pass? Averages and spread Week 1160 minComputer optional

From the pack “The maths behind machines”, session 6. Averages and spread are what learners need to judge the Noisy Factory in the next session: one lucky run is not evidence.

Objectives

Timing

MinutesPartWhat happens
5HookA paper plane flew 4 m once. Is it a 4 m plane?
25Coin slide testRun the coin slide test.
15DecideGroups decide whether their ramp meets the requirement.
10WorksheetQuestions 1–3.
5Wrap-upHow many tests are enough?

Activity: Coin slide test 25 minunplugged

Materials: Cardboard (from packaging), Coins (or paper counters), Paper

  1. Lean a pre-cut cardboard ramp on a book on the desk.
  2. Release a coin from the top line; mark where it stops on a paper strip.
  3. Repeat ten times and record each distance.
  4. Requirement: the coin must stop within 20 cm of the ramp's foot at least 8 times out of 10.
Safety and supervision
  • Ramps stay on the desk; coins that fall are picked up at the end, not during the test. Count coins back in.
  • An adult pre-cuts any cardboard before the session. Learners fold, slot and stack only; no blades or scissors in learners' hands.
  • Coins are small objects: count them out and back in. Use flat paper counters instead with any group where someone may put small objects in their mouth.
  • Paper edges can cut: hand sheets out rather than sliding them across desks.
  • A named adult from the host organisation supervises every session, follows that organisation's own safeguarding policy, and stays in the room throughout. No activity needs learners to go online alone, create an account or share personal information.

Differentiation

Discussion prompts

Online lessons (optional)

Interactive laboratories and their offline alternatives

Other editions

Worksheet: see “Worksheet 21” at the end. Teacher solutions are on the protected educator page, not in this document.

Session 22: Evidence from many runs: the Noisy Factory Week 1160 minOne shared screen

Objectives

Timing

MinutesPartWhat happens
5RecapWhy is the average of five runs better than one run?
10BriefingRead the Noisy Factory briefing together; agree what 'better' means before trying anything.
25Mission Lab runsPairs or the whole group try two designs, record five runs each and compare averages and spread.
15WorksheetQuestions 1–3.
5Exit questionWhat would change your mind about your chosen design?

Activity: Five runs each 25 minonline-optional

  1. Write the success measure on paper before running anything.
  2. Run design A five times and record each result in a table.
  3. Run design B five times and record each result.
  4. Work out the average and the range of each and decide which design is better.

Activity: Trade-off table 10 minunplugged

Materials: Paper, Pencils

  1. Draw a table with the two designs as rows and three criteria as columns.
  2. Fill each cell with a number or a word from your runs.
  3. Circle the criterion that matters most for the factory and explain why.
Safety and supervision
  • Paper and pencils stay on the desks; hand sheets out rather than sliding them.
  • Paper edges can cut: hand sheets out rather than sliding them across desks.
  • Pencils are for writing and drawing only, never as levers, axles or pointers near faces.
  • A named adult from the host organisation supervises every session, follows that organisation's own safeguarding policy, and stays in the room throughout. No activity needs learners to go online alone, create an account or share personal information.

Differentiation

Discussion prompts

Online lessons (optional)

Interactive laboratories and their offline alternatives

Other editions

Worksheet: see “Worksheet 22” at the end. Teacher solutions are on the protected educator page, not in this document.

Session 23: Project: build the smart junction Week 1260 minOne shared screen

Objectives

Timing

MinutesPartWhat happens
10BriefIntroduce the project and the rubric; teams choose their success measures.
10Test planTeams write three tests that could prove their design wrong.
30BuildTeams adjust the junction in the Nexus project or the Overloaded City Mission Lab and record each change in a log.
10Save evidenceTeams record their best settings and the numbers that support them.

Activity: Junction build 30 minonline-optional

  1. Open the smart junction project and run the starting design.
  2. Change one setting at a time and write each change and its result in the log.
  3. Run your three planned tests on your best design.
  4. Note any test that failed and what you changed because of it.

Activity: Test plan on paper 10 minunplugged

Materials: Paper, Pencils

  1. Write three tests: what you will do, what result would pass and what would fail.
  2. Include one test of a safety rule, such as never two greens at once.
  3. Swap with another team and ask them to find a gap in your plan.
Safety and supervision
  • Paper and pencils stay on the desks; hand sheets out rather than sliding them.
  • Paper edges can cut: hand sheets out rather than sliding them across desks.
  • Pencils are for writing and drawing only, never as levers, axles or pointers near faces.
  • A named adult from the host organisation supervises every session, follows that organisation's own safeguarding policy, and stays in the room throughout. No activity needs learners to go online alone, create an account or share personal information.

Differentiation

Discussion prompts

Online lessons (optional)

Interactive laboratories and their offline alternatives

Other editions

Worksheet: see “Worksheet 23” at the end. Teacher solutions are on the protected educator page, not in this document.

Session 24: Project: test, document and present Week 1260 minComputer optional

Objectives

Timing

MinutesPartWhat happens
10Final testsTeams rerun their tests on the final design and update the results.
15READMETeams write a one-page README: what it does, how to run it, what was tested, what is unknown.
25PresentationsEach team has three minutes plus questions; listeners use the feedback card.
10ReflectionWorksheet and a whole-group look back at the twelve weeks.

Activity: Three-minute presentation 25 mindiscussion

  1. State the problem and your success measure in one sentence.
  2. Show your best evidence: a number from your tests and how you got it.
  3. Say one thing that did not work and one thing you still do not know.
  4. Answer one question from the audience.

Differentiation

Discussion prompts

Online lessons (optional)

Interactive laboratories and their offline alternatives

Other editions

Worksheet: see “Worksheet 24” at the end. Teacher solutions are on the protected educator page, not in this document.

Project: The smart junction

A crossroads jams every rush hour. Design a signal plan that moves more traffic while never breaking the safety rule, test it with a plan written in advance, and present the evidence and its limits.

Offline: Design the signal plan on paper as a state diagram with green times, then count queues by hand from printed arrival lists for a morning and an evening rush. Present with a results table on a large sheet.

Assessment rubrics

Rubrics describe evidence of competency, not age. Use them for feedback, never for grades, rankings or public lists of learners.

Coding sessions

Use for feedback on worksheets and coding work in sessions 3–20. Look at what a learner can do, never at speed or age.

CriterionBeginningDevelopingSecureExcellent
Reading codeCan say what one line does with help.Traces a short program with some slips.Traces programs with variables, decisions and loops correctly.Predicts output before running and explains surprises.
Writing codeCopies a given program and runs it.Changes a given program to answer a what-if question.Writes a short program from a description, with clear names and units.Breaks a problem into functions and tests each one.
TestingRuns the program once.Tries a few values, mostly typical ones.Chooses boundary and unusual values on purpose.Writes tests before the code and explains what each would catch.
DebuggingNotices that something is wrong.Finds the line from a traceback.Fixes logic bugs by changing one thing at a time.Keeps a bug log and adds a test so the bug cannot return.

Smart junction project

Use in sessions 23 and 24 for the project and presentation.

CriterionBeginningDevelopingSecureExcellent
Problem and measuresDescribes the junction problem in general terms.Names a success measure.States clear success measures and a safety rule before building.Explains trade-offs between the measures and who they affect.
Test plan and evidenceShows one result.Has tests, but some cannot fail.Runs planned tests that could fail and records results honestly.Uses several runs and spread to support the choice.
IterationKeeps the first design.Changes several things at once.Changes one setting at a time and logs each result.Explains why each change was tried and what it taught.
CommunicationShows the design without explanation.Explains what the design does.Presents evidence and one honest limitation; README can be followed.Answers questions with evidence and suggests next tests.

Accessibility guidance

Student worksheets

One worksheet per session. Questions only.

Worksheet 1: Why engineers compute

Twelve-week computational engineering · Week 1 · Questions only. Your teacher checks your answers.

Name: Date:

1. Draw a flowchart for making a cup of tea that includes one decision diamond.

2. A step says 'wait a bit'. Rewrite it so a machine could follow it exactly.

3. Which shape shows a yes/no question in a flowchart?

  • Rectangle
  • Diamond
  • Circle
  • Arrow

From the online lesson “Flowcharts: drawing decisions and loops”

4. A tank starts with 55 L of water. The controller runs: while level < 100: level = level + 10 (one pump pass adds 10 L). How many times does the pump run before the loop stops?

Answer: passes

5. In a flowchart, what does a diamond mean?

  • An action, such as 'pump on'
  • A decision with a yes exit and a no exit
  • The end of the algorithm

Online, the lesson marks these for you: https://tactiverge.win/lite/lesson/l2-w01-algorithms-and-flowcharts/

Worksheet 2: A number without a unit is a mystery

Twelve-week computational engineering · Week 1 · Questions only. Your teacher checks your answers.

Name: Date:

1. Record your estimates and measurements.

StationEstimate (with unit)Measured (with unit)Difference

2. Explain one strategy you used to make a better estimate.

3. Someone says a door is '2 tall'. Write two different things they might mean.

From the online lesson “A number without a unit is a mystery”

4. Which of these is a complete measurement?

  • 42
  • 42 cm
  • Quite long
  • Forty-two

5. What does 'kilo' mean in kilometre and kilogram?

  • One hundredth
  • One thousand times
  • Ten times

Online, the lesson marks these for you: https://tactiverge.win/lite/lesson/l1-w03-why-units-matter/

From the online lesson “Good-enough numbers: the art of estimation”

6. A tree is really 12 m tall. Which guess is within a factor of 2?

  • 3 m
  • 8 m
  • 40 m

7. A classmate calculates that a school backpack holds 2,000 litres. What's the most likely problem?

  • Backpacks really are that big
  • A units or arithmetic mistake: a backpack holds about 20–30 litres
  • Litres can't measure volume

Online, the lesson marks these for you: https://tactiverge.win/lite/lesson/l1-w03-good-enough-numbers/

Worksheet 3: Your first program: battery runtime

Twelve-week computational engineering · Week 2 · Questions only. Your teacher checks your answers.

Name: Date:

1. A battery holds 3000 mAh and a torch draws 600 mA. Write the two Python lines that store these values and one line that prints the runtime.

2. Trace this program: a = 4, then b = a * 3, then a = b - 2, then print(a). Fill in each variable after each line.

LineabPrinted

3. Explain why the order of the lines matters in a program.

From the online lesson “Your first Python program: battery runtime”

4. A sensor node runs from a 2500 mAh battery and draws a steady 50 mA. A program computes hours = 2500 / 50 and then minutes = hours * 60. What value does minutes hold, in minutes? (Ignore the battery ageing or the voltage dropping.)

Answer: min

5. What does print("3 + 4") show?

  • 7
  • 3 + 4
  • An error

Online, the lesson marks these for you: https://tactiverge.win/lite/lesson/l2-w02-first-program/

From the online lesson “How the interpreter reads your program”

6. Trace this Python by hand: x = 8; x = x + 1; x = x * 4; x = x - 20; print(x). What number is printed?

Answer:

7. a = 5; b = a * 2; a = 100; print(b). What is printed?

  • 10
  • 200
  • An error

Online, the lesson marks these for you: https://tactiverge.win/lite/lesson/l2-w02-top-to-bottom/

Worksheet 4: Variables that track a changing machine

Twelve-week computational engineering · Week 2 · Questions only. Your teacher checks your answers.

Name: Date:

1. level = 20, then level = level + 5, then level = level * 2, then level = level - 12. Write the value of level after each line.

After linelevel

2. Which type is "23.5 °C" (with the quote marks) in Python?

  • int
  • float
  • str
  • list

3. Give one value from a robot that should be stored as an int and one that should be a float. Explain each choice.

From the online lesson “Variables that track a changing machine”

4. A robot starts with distance_m = 0.0 and its loop runs distance_m = distance_m + speed_m_per_s * dt_s exactly 7 times, with speed_m_per_s = 2 and dt_s = 0.1. What is distance_m at the end, in metres?

Answer: m

5. Which lines correctly swap a and b?

  • a = b then b = a
  • a, b = b, a
  • b = a then a = b

Online, the lesson marks these for you: https://tactiverge.win/lite/lesson/l2-w03-names-and-updates/

From the online lesson “int, float, str and list”

6. A machine makes 26 parts and packs them in boxes of 12. What does Python give for 26 // 12 (full boxes)?

Answer: parts

7. What is the type of 7 // 2?

  • int
  • float
  • str

Online, the lesson marks these for you: https://tactiverge.win/lite/lesson/l2-w03-types/

Worksheet 5: Translate a formula into Python

Twelve-week computational engineering · Week 3 · Questions only. Your teacher checks your answers.

Name: Date:

1. Write one line of Python that computes power_w from voltage_v and current_a (power equals voltage times current).

2. A program prints 7200 for the time in seconds to walk 120 m at 1.5 m/s. Estimate the real answer and say what bug might cause 7200.

3. Which line computes the area of a circle with radius r?

  • area = math.pi * r * 2
  • area = math.pi * r ** 2
  • area = (math.pi * r) ** 2
  • area = math.pi + r ** 2

From the online lesson “Translate a formula into Python”

4. Which Python line correctly computes V_out = V_in·R2/(R1 + R2)?

  • v_out = v_in * r2 / r1 + r2
  • v_out = v_in * r2 / (r1 + r2)
  • v_out = (v_in * r2 / r1) + r2

5. What does Python give for -3 ** 2?

  • 9
  • -9
  • An error

Online, the lesson marks these for you: https://tactiverge.win/lite/lesson/l2-w04-formulas-to-code/

From the online lesson “The math module: roots, angles and radians”

6. A loading ramp is 2.7 m long and rises at 5° to the floor. Python computes height_m = 2.7 * math.sin(math.radians(5)). What is the height, in metres?

Answer: m

7. Which line correctly computes cos of 60°?

  • math.cos(60)
  • math.cos(math.radians(60))
  • math.radians(math.cos(60))

Online, the lesson marks these for you: https://tactiverge.win/lite/lesson/l2-w04-math-module/

Worksheet 6: Levers: small push, big lift

Twelve-week computational engineering · Week 3 · Questions only. Your teacher checks your answers.

Name: Date:

1. Record your balanced levers.

Left coinsLeft distanceRight coinsRight distance

2. Describe the pattern you found in your own words.

3. 3 coins sit 4 marks left of the pivot. Where could 2 coins go to balance them? Explain how you know.

From the online lesson “Levers: how a small push lifts a big load”

4. A 50 N load is 1 m from the pivot. You push 5 m from the pivot. What push balances it, in newtons?

Answer: N

5. Why is a door handle put on the side far from the hinges?

  • It looks better
  • A push far from the pivot has a bigger turning effect
  • The door is lighter on that side
  • So the door closes by itself

Online, the lesson marks these for you: https://tactiverge.win/lite/lesson/l1-w10-levers-and-pivots/

From the online lesson “Levers and gears: small push, big result”

6. Where should you push a door to open it most easily?

  • Right next to the hinges
  • In the middle
  • At the edge furthest from the hinges

7. A long crowbar lets you lift a heavy rock with a small push. What do you give up?

  • Nothing: it's free force
  • Your end of the bar moves much further than the rock does
  • The rock gets lighter

Online, the lesson marks these for you: https://tactiverge.win/lite/lesson/l1-w05-levers-and-gears/

Worksheet 7: Gear ratios: speed or strength

Twelve-week computational engineering · Week 4 · Questions only. Your teacher checks your answers.

Name: Date:

1. Your big circle turned once. How many times did the small one turn? Write it as a ratio.

2. A gear with 30 teeth drives a gear with 10 teeth. Explain how you would work out which turns faster and by how much.

3. Explain why a low gear helps a cyclist climb a hill.

From the online lesson “What a ratio says”

4. A gear pair has 25 teeth on the driven gear and 5 teeth on the driver. Write the ratio 25 : 5 in its simplest form. What is the FIRST number?

Answer:

5. A mixing machine uses 6 cups of flour for every 2 eggs. Keeping the same ratio, how many cups of flour go with 4 eggs?

Answer:

Online, the lesson marks these for you: https://tactiverge.win/lite/lesson/l1-w12-what-a-ratio-says/

From the online lesson “Gear ratios: speed or strength, pick one”

6. A driver gear with 15 teeth turns a driven gear with 30 teeth. What is the gear ratio (driven teeth ÷ driver teeth)?

Answer:

7. A 10-tooth driver gear meshes with a 30-tooth driven gear. The driver turns 12 times. How many times does the driven gear turn?

Answer: turns

Online, the lesson marks these for you: https://tactiverge.win/lite/lesson/l1-w12-gear-ratios/

Worksheet 8: Decisions from measurements

Twelve-week computational engineering · Week 4 · Questions only. Your teacher checks your answers.

Name: Date:

1. temp = 31. The program says: if temp > 30 print HOT, elif temp > 20 print WARM, else print COOL. What is printed, and why only one line?

2. Fill in the table for: run = door_closed and not overheated.

door_closedoverheatedrun

3. Write an if statement that prints STOP when a distance reading is below 15 cm or the stop button is pressed.

From the online lesson “Decisions from measurements: if, elif, else”

4. A cooling fan is set by: if temp_c >= 45: fan = 100, elif temp_c >= 35: fan = 50, else: fan = 0. What is fan, in %, when temp_c = 44.5?

Answer: %

5. A rule is written: if temp_c >= 35: fan = 50, elif temp_c >= 50: fan = 100. What is wrong?

  • Nothing
  • The fan can never reach 100 %: any temperature ≥ 50 already matches the first test
  • It raises a SyntaxError

Online, the lesson marks these for you: https://tactiverge.win/lite/lesson/l2-w05-if-elif-else/

From the online lesson “and, or, not: safety interlocks in code”

6. guard, operator and fault are each True or False (8 combinations). For how many of the 8 combinations is this Python condition True: guard or operator?

Answer: rows

7. Which condition is True exactly when temp_c is from 0 to 45 inclusive?

  • 0 < temp_c < 45
  • 0 <= temp_c <= 45
  • temp_c >= 0 or temp_c <= 45

Online, the lesson marks these for you: https://tactiverge.win/lite/lesson/l2-w05-combining-conditions/

Worksheet 9: Thresholds: when is it 'too cold'?

Twelve-week computational engineering · Week 5 · Questions only. Your teacher checks your answers.

Name: Date:

1. Write an IF–THEN–ELSE rule for a night light. Include a threshold.

2. Your night light switches on and off again and again at dusk. Explain why this might happen.

3. A greenhouse heater rule uses a threshold that is far too high. What is most likely?

  • Plants freeze
  • Energy is wasted
  • The sensor breaks
  • Nothing changes

From the online lesson “Choosing a good threshold”

4. Rule: IF temperature > 40 °C THEN switch the fan on. The sensor reads 41 °C, 55 °C, 40 °C, 33 °C, 43 °C, 47 °C. For how many of these readings does the THEN branch run?

Answer:

5. A doorbell camera alerts you when motion is above a threshold. Leaves blowing keep triggering it. What should you do?

  • Lower the threshold
  • Raise the threshold
  • Remove the threshold

Online, the lesson marks these for you: https://tactiverge.win/lite/lesson/l1-w22-thresholds/

From the online lesson “IF this, THEN that, ELSE the other”

6. IF light level < 30 THEN lamp on ELSE lamp off. The sensor reads 45. What happens?

  • Lamp on
  • Lamp off
  • Both

7. IF speed > 50 THEN beep. The speed is exactly 50. Does it beep?

  • Yes
  • No

Online, the lesson marks these for you: https://tactiverge.win/lite/lesson/l1-w22-if-then-else/

Worksheet 10: Test the edges: a heater that behaves

Twelve-week computational engineering · Week 5 · Questions only. Your teacher checks your answers.

Name: Date:

1. A heater turns on when the temperature is below 5 °C. List four temperatures you would test and say why each one.

2. The heater switches on and off every minute. Suggest one change to the rule and one downside of that change.

3. You changed two settings at once and the result improved. What do you know?

  • Both changes helped
  • The first change helped
  • Something helped, but you cannot tell which
  • Nothing, the test was unfair

From the online lesson “Test the edges: boundary values”

4. A thermometer reports in steps of 0.5 °C. The alarm rule is if temp_c >= 30: alarm(). As the temperature rises from 28 °C one step at a time, what is the first reading that sets off the alarm, in °C?

Answer: °C

5. A rule should pass readings from 10 to 60 inclusive, in steps of 1. Which set of tests is best?

  • 20, 30, 40
  • 9, 10, 11, 59, 60, 61
  • 0, 100

Online, the lesson marks these for you: https://tactiverge.win/lite/lesson/l2-w05-boundary-testing/

From the online lesson “On/off control and hysteresis”

6. A thermostat uses a setpoint of 20 °C and a total hysteresis band of 3 °C, centred on the setpoint. Below what temperature does the heater switch on, in °C?

Answer: °C

7. With 'on below 17, off above 19', the heater is ON and the temperature is 18.2 °C. What does the controller do?

  • Switch off
  • Keep the heater on
  • Switch on

Online, the lesson marks these for you: https://tactiverge.win/lite/lesson/l2-w26-on-off-and-hysteresis/

Worksheet 11: Loops over readings

Twelve-week computational engineering · Week 6 · Questions only. Your teacher checks your answers.

Name: Date:

1. Trace: total = 0, then for r in [3, 5, 4]: total = total + r. Write r and total after each pass of the loop.

Passrtotal

2. level = 0; while level < 10: level = level + 3. How many times does the loop body run, and what is level at the end?

3. Describe in words how you would find the largest reading in a list using a loop.

From the online lesson “for loops: summarise a sensor log”

4. A loop totals and counts these temperature readings (°C): [18.0, 25.4, 31.8, 31.6, 21.9, 26.6]. What is total / count, in °C?

Answer: °C

5. How many times does the body of for r in readings: run if readings has 7 items?

  • 6
  • 7
  • 8

Online, the lesson marks these for you: https://tactiverge.win/lite/lesson/l2-w06-loop-over-readings/

From the online lesson “while loops: repeat until it's done”

6. A motor is 75 °C hotter than the room. Each minute of cooling multiplies the difference by 0.5. The program runs: while excess > 5: excess = excess * 0.5; minutes = minutes + 1 (starting from excess = 75, minutes = 0). What is minutes when the loop ends?

Answer: min

7. Which while loop never ends?

  • n = 0; while n < 5: n += 1
  • n = 10; while n > 0: n -= 2
  • n = 1; while n != 10: n += 2

Online, the lesson marks these for you: https://tactiverge.win/lite/lesson/l2-w06-while-loops/

Worksheet 12: Rounding and jitter

Twelve-week computational engineering · Week 6 · Questions only. Your teacher checks your answers.

Name: Date:

1. Record one object with all three rulers.

RulerReadingBiggest possible rounding error

2. Explain the difference between quantisation and noise using today's results.

3. A sensor reports whole degrees only. What is the biggest rounding error it can make? Explain.

From the online lesson “ADC counts, quantisation and noise”

4. What voltage does one step (1 LSB) of a 10-bit ADC with a 3.3 V reference represent, in millivolts?

Answer: mV

5. A 8-bit ADC with a 5 V reference reads 53. Using volts = count × Vref ÷ 2^n, what voltage is that, in volts?

Answer: V

Online, the lesson marks these for you: https://tactiverge.win/lite/lesson/l2-w22-adc-quantisation-noise/

From the online lesson “Where noise comes from”

6. A light sensor's readings jump every time a nearby motor starts. The most likely source is…

  • thermal noise
  • electrical interference
  • quantisation
  • bias

7. Noise is 2.0 at 0.5 m/s. If noise scales with √speed, what is it at 2.0 m/s?

Answer:

Online, the lesson marks these for you: https://tactiverge.win/lite/lesson/l3-w21-where-noise-comes-from/

Worksheet 13: Filters: smooth but late

Twelve-week computational engineering · Week 7 · Questions only. Your teacher checks your answers.

Name: Date:

1. Explain how a 3-value moving average is calculated, with one example from today.

2. Compare the 3-value and 5-value filters: which is smoother, which is quicker to react?

3. A robot must stop quickly when an obstacle appears. Would you choose a big or small window? Explain the trade-off.

From the online lesson “The moving average and the noise–lag trade-off”

4. Readings 4, 8, 6, 10. What does a k = 2 moving average output now?

Answer:

5. A filter keeps the mean of the last k = 5 readings. The readings so far, oldest first, are: 35, 16, 15, 35, 38, 10. What does the filter output now?

Answer:

Online, the lesson marks these for you: https://tactiverge.win/lite/lesson/l3-w23-moving-average/

From the online lesson “Sensors aren't perfect”

6. A thermometer reads 18, 19, 17 and 18 °C. What is the average, in °C?

Answer: °C

7. A robot drives at 10 cm/s and checks its distance sensor 10 times a second. How far does it travel between one check and the next, in cm?

Answer: cm

Online, the lesson marks these for you: https://tactiverge.win/lite/lesson/l1-w24-noisy-readings/

Worksheet 14: Functions: package a calculation

Twelve-week computational engineering · Week 7 · Questions only. Your teacher checks your answers.

Name: Date:

1. def double_plus_one(x): return 2 * x + 1. What does double_plus_one(4) give? What does double_plus_one(double_plus_one(1)) give?

2. Write a function c_to_f(c) that converts Celsius to Fahrenheit (multiply by 9/5, then add 32).

3. A program is 80 lines long with no functions. Name three functions you might split it into for a greenhouse controller.

From the online lesson “Package a calculation as a function”

4. def wheel_speed_m_per_s(rpm, diameter_m): return rpm / 60 * math.pi * diameter_m. What does wheel_speed_m_per_s(150, 0.05) return, in m/s?

Answer: m/s

5. Why is return better than print inside a calculation function?

  • return is faster to type
  • The returned value can be used in further calculations and tests
  • print does not work inside functions

Online, the lesson marks these for you: https://tactiverge.win/lite/lesson/l2-w07-define-and-return/

From the online lesson “Decompose a program into functions”

6. A 10-bit ADC reads raw = 307. to_volts(raw) returns raw * 3.3 / 1023, and to_celsius(v) returns (v - 0.5) * 100 (a TMP36-style sensor: 10 mV per °C with a 0.5 V offset). What is to_celsius(to_volts(307)), in °C?

Answer: °C

7. Which function does one job?

  • read_convert_check_and_print(path)
  • to_volts(raw)
  • do_everything()

Online, the lesson marks these for you: https://tactiverge.win/lite/lesson/l2-w07-decompose-into-functions/

Worksheet 15: Hunting bugs like an engineer

Twelve-week computational engineering · Week 8 · Questions only. Your teacher checks your answers.

Name: Date:

1. A traceback ends with: line 4, NameError: name 'temprature' is not defined. What is the likely bug and how would you fix it?

2. average = total / 3 is used for a list of 4 readings. The program runs without errors. What kind of bug is this and what test would catch it?

3. Fill in a bug log for a bug you met today.

SymptomHypothesisTestResult

From the online lesson “Read the traceback”

4. Which part of a traceback tells you the kind of error?

  • The first line, 'Traceback (most recent call last)'
  • The last line
  • The middle line

5. Which is a logic error?

  • if x = 5:
  • print(10 / 0)
  • A mean computed as total / (count + 1)

Online, the lesson marks these for you: https://tactiverge.win/lite/lesson/l2-w08-read-a-traceback/

From the online lesson “Reproduce, hypothesise, test: hunting logic bugs”

6. readings = [15.0, 22.9, 29.8, 29.6, 19.2]. The buggy code sets total = 0, runs for i in range(1, len(readings)): total = total + readings[i], then calls print(total / len(readings)). What does it print (to 2 decimal places)?

Answer:

7. A program gives a wrong total. What is the best first step?

  • Rewrite the whole program
  • Find a small input that always shows the wrong total
  • Change the < signs to <= and see

Online, the lesson marks these for you: https://tactiverge.win/lite/lesson/l2-w08-hunt-logic-bugs/

Worksheet 16: Robots on a grid

Twelve-week computational engineering · Week 8 · Questions only. Your teacher checks your answers.

Name: Date:

1. Draw a grid from −3 to 3 on both axes. Plot (2, 1), (−1, 3) and (−2, −2).

2. Write a route of four points that visits all four quadrants.

3. Explain what goes wrong if a robot swaps x and y.

From the online lesson “Grids and ordered pairs: giving every point an address”

4. A point is 4 squares across and 1 square up from the origin. How is it written?

  • (1, 4)
  • (4, 1)
  • (4 1)
  • 4 : 1

5. What is the y coordinate of the point (6, 3)?

Answer:

Online, the lesson marks these for you: https://tactiverge.win/lite/lesson/l1-w13-grids-and-ordered-pairs/

From the online lesson “Four quadrants: below zero and behind the robot”

6. In which quadrant is (−2, −5)?

  • Top right
  • Top left
  • Bottom left
  • Bottom right

7. How many squares apart, across, are x = −3 and x = 4?

Answer:

Online, the lesson marks these for you: https://tactiverge.win/lite/lesson/l1-w13-four-quadrants-and-robot-arms/

Worksheet 17: Triangles that reach

Twelve-week computational engineering · Week 9 · Questions only. Your teacher checks your answers.

Name: Date:

1. Record your string-arm results.

AngleAcrossUpUp ÷ lengthAcross ÷ length

2. What did you notice about the ratios for the same angle with different string lengths?

3. Explain how you would find how high a 30 cm arm reaches at your steepest angle, using your table.

From the online lesson “sin, cos and tan are just ratios”

4. A robot link is tilted at angle θ above the horizontal. Relative to θ, which side is the vertical drop from the tip down to the horizontal line?

  • The hypotenuse
  • The opposite side
  • The adjacent side

5. sin 30° = 0.5. A 12 cm link points 30° above horizontal. How high is its tip above the joint, in cm?

Answer: cm

Online, the lesson marks these for you: https://tactiverge.win/lite/lesson/l2-w29-trig-ratios/

From the online lesson “Joints and arms: placing a robot hand”

6. A robot arm has an upper arm 9 cm long and a forearm 2 cm long. What is the closest distance from the shoulder that the hand can reach, in cm?

Answer: cm

7. Our arm has links of 5 and 3 units. Which point can its hand NOT reach?

  • A point 4 units from the shoulder
  • A point 7 units from the shoulder
  • A point 9 units from the shoulder

Online, the lesson marks these for you: https://tactiverge.win/lite/lesson/l1-w26-joints-and-arms/

Worksheet 18: A state machine in code

Twelve-week computational engineering · Week 9 · Questions only. Your teacher checks your answers.

Name: Date:

1. Draw a state diagram for a pedestrian crossing with the states WAIT, WALK and FLASHING, and label each arrow with its event.

2. A signal is GREEN for 3 ticks, AMBER for 1 and RED for 4, starting at GREEN. Which state is it in at tick 6 (counting the first tick as 1)?

3. Why must a junction never go from GREEN in one direction to GREEN in the crossing direction without a RED in between?

From the online lesson “A state machine in twelve lines”

4. state is CLOSING and the event is 'person'. Which value does `step` return?

  • CLOSING
  • OPENING
  • CLOSED

5. An automatic door has states 0 = closed, 1 = opening, 2 = open, 3 = closing. Its events are 0 = person detected, 1 = fully open, 2 = timer ended, 3 = fully closed. Rules: closed + person → opening; opening + fully open → open; open + timer ended → closing; closing + fully closed → closed; closing + person → opening. Any other event leaves the state unchanged. The door is in state 0 and event 3 happens. What state number comes next?

Answer: state

Online, the lesson marks these for you: https://tactiverge.win/lite/lesson/l2-w23-state-machines-in-code/

From the online lesson “Set up once, loop forever”

6. Where should 'set pin 3 as an output' go?

  • In setup, once
  • Inside the loop, every pass
  • After the loop ends

7. In the heater loop (heater on if temp < 18, otherwise off), the readings on three passes are 17.5, 18.0 and 18.4. What does the heater do on each pass?

  • on, on, off
  • on, off, off
  • off, off, on

Online, the lesson marks these for you: https://tactiverge.win/lite/lesson/l2-w19-the-super-loop/

Worksheet 19: Closing the loop

Twelve-week computational engineering · Week 10 · Questions only. Your teacher checks your answers.

Name: Date:

1. Which of these is a closed-loop system?

  • A toaster with a timer
  • An oven that keeps itself at 180 °C
  • A hand-cranked music box
  • A sand timer

2. Draw the human thermostat as a loop. Add an arrow showing where information goes back.

3. On/off control made the coin count go up and down around the target. Suggest one change that would make it steadier.

From the online lesson “Open loop or closed loop?”

4. Which of these is closed-loop?

  • A washing machine that always fills for 90 seconds
  • A washing machine that fills until a level sensor says full
  • A fan that runs for 10 minutes

5. A heater wants the room at 21 °C. The thermometer reads 17.5 °C. What is the gap (target − measured), in °C?

Answer: °C

Online, the lesson marks these for you: https://tactiverge.win/lite/lesson/l1-w25-open-and-closed-loop/

From the online lesson “On/off control: the bang-bang thermostat”

6. Why does a bang-bang thermostat never hold the temperature exactly on target?

  • The thermometer is broken
  • The heater can only be fully on or fully off, so it overshoots and undershoots
  • The target is set wrong

7. A thermostat targets 22 °C with a 3 °C gap split evenly. Below what temperature does the heater switch on, in °C?

Answer: °C

Online, the lesson marks these for you: https://tactiverge.win/lite/lesson/l1-w25-on-off-control/

Worksheet 20: Models are functions: a controller you can test

Twelve-week computational engineering · Week 10 · Questions only. Your teacher checks your answers.

Name: Date:

1. A room starts at 10 °C with a target of 20 °C. Each tick, temperature goes up by gain × (target − temperature). With gain 0.5, fill in three ticks.

TickErrorChangeTemperature

2. Describe what you would expect with a gain of 1.5 in the same model.

3. Name two things a real heated room has that this model leaves out.

From the online lesson “Models are functions: input in, output out”

4. A spring's extension is e(F) = 2.5·F mm, with F in newtons. What is the extension for a 12 N load, in mm?

Answer: mm

5. Tests show a spring's extension follows f(x) = 5·x, where x is load in N and f(x) is in mm. What input x gives an output of exactly 90 mm?

Answer: N

Online, the lesson marks these for you: https://tactiverge.win/lite/lesson/l2-w33-models-as-functions/

From the online lesson “Proportional control: push harder when further away”

6. A proportional heater controller uses effort = gain × error, where error = setpoint − temperature. The gain is 40% per °C and the effort is limited to the range 0 to 100%. The setpoint is 18 °C and the temperature is 16 °C. What heater effort does it command, in %?

Answer: %

7. A proportional heater controller uses effort = gain × error, where error = setpoint − temperature. The gain is 10% per °C and the effort is limited to the range 0 to 100%. The setpoint is 22 °C and the temperature is 17.5 °C. What heater effort does it command, in %?

Answer: %

Online, the lesson marks these for you: https://tactiverge.win/lite/lesson/l2-w26-proportional-control/

Worksheet 21: Did it pass? Averages and spread

Twelve-week computational engineering · Week 11 · Questions only. Your teacher checks your answers.

Name: Date:

1. Record ten slides.

TrialDistance (cm)

2. Work out the average and the range of your results. Show your working.

3. Did your ramp meet the requirement? Use your numbers to explain.

From the online lesson “Repeat, average, spread”

4. A drip outlet is tested 5 times. It delivers 30, 38, 38, 26, 32 mL. What is the mean (average) amount delivered, to one decimal place?

Answer: mL

5. Your prototype is tested 5 times, measuring centimetres the cart rolled: 30, 28, 61, 66, 20. What is the range of the results?

Answer: cm

Online, the lesson marks these for you: https://tactiverge.win/lite/lesson/l1-w32-repeat-and-average/

From the online lesson “How often does it fail?”

6. A simulated door draught stopper is run 10 times and fails 2 times. What is its failure rate, as a percentage?

Answer: %

7. Before your improvement, the design failed 5 of 10 trials. After it, the same test failed 0 of 10. By how many percentage points did the failure rate drop?

Answer: percentage points

Online, the lesson marks these for you: https://tactiverge.win/lite/lesson/l1-w33-how-often/

Worksheet 22: Evidence from many runs: the Noisy Factory

Twelve-week computational engineering · Week 11 · Questions only. Your teacher checks your answers.

Name: Date:

1. Record five runs for each design and compute the average and range.

DesignRunsAverageRange

2. Design A averaged 91 with a range of 20. Design B averaged 89 with a range of 4. Which would you choose for a factory, and why?

3. Write one honest limitation of your evidence.

From the online lesson “A test plan that could prove you wrong”

4. A test matrix covers 4 objects, 2 pad materials and 2 lift accelerations. How many test cases are there?

Answer:

5. A simulation test plan runs every combination of 2 loads and 4 speeds. 1 of the runs fail a requirement. What percentage of runs pass?

Answer: %

Online, the lesson marks these for you: https://tactiverge.win/lite/lesson/l2-w33-test-plans/

From the online lesson “How fragile is your decision?”

6. Concept A scores 31 + 2w and concept B scores 26 + 5w, where w is the weight of one criterion. At what value of w are they equal?

Answer:

7. Sweeping 'cost' from 0 to 5 never changes the winner. What does that mean?

  • Cost doesn't matter
  • The decision is robust to how much you value cost
  • The matrix is broken
  • Cost should be removed

Online, the lesson marks these for you: https://tactiverge.win/lite/lesson/l2-w32-sensitivity/

Worksheet 23: Project: build the smart junction

Twelve-week computational engineering · Week 12 · Questions only. Your teacher checks your answers.

Name: Date:

1. Write your test plan.

TestHowPass ifResult

2. Write the one rule your junction must never break, and how you tested it.

From the online lesson “Requirements two strangers would agree on”

3. Which statement is testable?

  • The arm must be precise
  • The arm must place its tip within 2 mm of the target in 9 out of 10 trials
  • The arm should be good quality
  • The arm must use a stepper motor

4. 'The greenhouse must use a fan.' What kind of statement is this?

  • A testable requirement
  • A preference
  • A solution in disguise
  • A constraint on cost

Online, the lesson marks these for you: https://tactiverge.win/lite/lesson/l2-w31-testable-requirements/

From the online lesson “A test plan that could prove you wrong”

5. A test matrix covers 4 objects, 2 pad materials and 2 lift accelerations. How many test cases are there?

Answer:

6. A simulation test plan runs every combination of 2 loads and 4 speeds. 1 of the runs fail a requirement. What percentage of runs pass?

Answer: %

Online, the lesson marks these for you: https://tactiverge.win/lite/lesson/l2-w33-test-plans/

Worksheet 24: Project: test, document and present

Twelve-week computational engineering · Week 12 · Questions only. Your teacher checks your answers.

Name: Date:

1. Write the first three lines of your README: what the design does, who it is for, and how to try it.

2. Which skill from this course did your project use most? Give one example from your project.

3. What is one thing your evidence cannot show? How could you find out?

From the online lesson “A README a stranger can follow”

4. Which instruction is best?

  • Set it up properly
  • Set the red threshold to 60 (slider under 'Colour')
  • Use the usual settings
  • Configure as needed

5. Why include a 'limits' section in a README?

  • To look modest
  • So readers don't trust the project for something it was never tested or modelled for
  • Because it's required by law
  • To make it longer

Online, the lesson marks these for you: https://tactiverge.win/lite/lesson/l2-w35-readme/

From the online lesson “Project: test it, show the evidence”

6. Which plan tests whether the outside temperature affects energy use fairly?

  • Change outside temperature only; keep the controller settings and noise the same
  • Change outside temperature and the band together to save time
  • Run once at −5 °C and guess

7. A PWM output switches between 0 V and 3.3 V with a duty cycle of 85%. What is the average voltage, in volts?

Answer: V

Online, the lesson marks these for you: https://tactiverge.win/lite/lesson/l2-w27-test-and-evidence/

A licence for redistribution has not yet been decided by the founders. Until it is, please share the link to this page rather than re-hosting or republishing copies. Tactiverge is not an accredited school, and completing a pack is not a qualification. Tactiverge has no institutional partners. Using a pack does not make your organisation a partner.