← Teacher guide

On or off

Students flip dot cards as switches, write on as 1 and off as 0, list the patterns two and three switches make, and see that each switch doubles the patterns (AC9TDI6K04 node 1).

Starting out · Numbers and switches · about 35 minutes · Open the student lesson

Classroom resources

Open these in Waypoints Prepare with one click. To share a file another way, copy its address and paste it into Load URL, or download the file and import it. In Prepare, the worksheet's Teacher edition shows the answers; the student copy hides them.

Students will be able to

Timing

Predict and Try 6 min · Worked example 10 min · Vary 7 min · Practise and Make 12 min

Before class

Do the boards yourself first. The cards are CS Unplugged's binary cards; doing it with real cards first works well. Here the dots don't count yet: this lesson is only on and off.

The one idea: on/off switches are written 1 and 0, and each switch doubles the number of patterns. No powers or place value needed; listing and doubling is enough.

Year 7–8 catch-up: How many patterns? (8K04 n2) does this with 2ⁿ; this lesson is the idea before the notation.

Running the lesson

  1. Predict: students who chose 3 missed all off; ask what 0 would look like.
  2. Try: have pairs say each pattern aloud as they flip.
  3. Worked example: build the 8 patterns on the board from the 4.
  4. Make: let partners invent a three-card code.

In class

On the slides at these points. Students can do the whole lesson on their own; these are for the room. In the deck, the Run, Modify and Make slides have the live playground in them (the tutorial link is the backup), and the notes above are in each slide's speaker notes.

The hard part (on purpose)

Leaving out all off (two switches make 3). Ask every time: is all face down a pattern too?

When students get stuck

What you will seeA question to askThe fix
A student counts 3 patterns for two switches (Sam's mistake).What do the cards show when they're both face down?All off is a pattern too: 4.
A student adds instead of doubling (3 switches: 6).For each of the 4 patterns, how many ways can the new switch go?Two each: 8.

Answers to the checks

  1. two switches: One switch can be on or off: that's 2 patterns. How many different patterns can two switches make?
    4: off off, off on, on off and on on. All off is a pattern too.
  2. Try: find every pattern: Flip the cards to make every pattern you can. Count them as you go. Finish with both cards face up.

    00, 01, 10, 11: four patterns from two switches.
  3. Three switches: A card is face up. What does the computer write for it?
    1
    On (face up) is 1. Off (face down) is 0.
  4. Find the mistake: Sam counts the patterns for two switches. Click the line where it first goes wrong.
    line 3
    Line 3: off, off is a pattern too. The computer uses it (it means 0), so two switches make 4 patterns.
  5. Three switches: How many patterns can three switches make?
    8
    Take the 4 patterns for two switches. The new switch can be off or on for each one: 4 + 4 = 8.
  6. Three cards: Press Add a card until there are three cards.

    Three switches: 8 patterns, from 000 to 111.
  7. On, off, on: With three cards, make the pattern on, off, on (left to right).

    1 0 1.
  8. Four switches: Add one more card in your head. How many patterns can four switches make?
    16
    Double 8: 16.
  9. Read the pattern: Four cards are face up, down, down, up. How does the computer write that?
    1001
    Up is 1, down is 0: 1001.
  10. Five switches: How many patterns can five switches make?
    32
    2, 4, 8, 16, 32: double once for each switch.
  11. Why on and off: Why are a computer's switches only on or off, not ten different settings?
    On and off are easy to tell apart
    On or off is hard to get wrong, even when the signal is weak. Lots of switches together make any number.
  12. a secret signal: Your secret signal is 0110. Set the four cards to it.

    Down, up, up, down: 0110.

Solutions

One possible solution for each task. Other correct programs are fine.

Vary: add switches › Three cards

Open task: any program that does what the step asks.

Vary: add switches › On, off, on

Open task: any program that does what the step asks.

Vary: add switches › Four switches

Open task: any program that does what the step asks.

a secret signal

Open task: any program that does what the step asks.

Stretch and support

Stretch: How many switches would you need to give every student in your school their own pattern?

Support: A card: up = on = 1, down = off = 0. 1 switch: 2, 2: 4, 3: 8, 4: 16.

Exit ticket

Write face down, face up, face up as 1s and 0s. How many patterns can those three switches make?

011; 8.

What each step is for

Where it leads

Next: Counting dots (patterns become numbers).

Year 7–8: Bits and binary numbers, How many patterns?