Slide 1 of 7 · Settling starter · Computer Science · Year 7
5 minutesBinary code bracelets
A computer stores a letter as a pattern of on and off. Today you use the same idea with beads: a dark bead is a 1 and a light bead is a 0. 5 beads per letter is enough for the whole alphabet.
While the register is called: write your name, class and date on your worksheet, then read “How the code works” and look at the first line of the practice table, letter M.
Starter question: The 5 beads are worth 16, 8, 4, 2 and 1. Why is 01101 the letter M?
Slide 2 of 7 · Today’s brief and key words · Computer Science · Year 7
2 minutesYour brief: decode a bracelet, then design your own
You will practise turning letters into 5-bit codes, decode a mystery bracelet somebody else made, design your own bracelet for a 5-letter Welsh word and check it works, then answer 4 questions about how many patterns are possible.
Bit
One binary digit, a 1 or a 0. On the bracelet a dark bead is a 1 and a light bead is a 0.
Place value
What each bead is worth, left to right: 16, 8, 4, 2, 1. Add up the dark beads to get the number.
Decode
Go backwards: read the beads, add up the number, then count that far into the alphabet (A = 1, Z = 26).
Slide 3 of 7 · Step 2: conversion practice · Computer Science · Year 7
9 minutesStep 2: complete the conversion practice table
Fill in every empty cell. For each letter, find its number, then keep asking “does 16 fit? does 8 fit?” and write 1 or 0 for each bead. The last 2 rows go the other way: start from the code and find the letter.
| Letter | Number | 5-bit code | Working |
|---|---|---|---|
| M | 13 | 01101 | 8 + 4 + 1 = 13, and 16 and 2 are not needed |
| A | 1 | 00001 | 1 = 1 |
Slide 4 of 7 · Step 3: decode the mystery bracelet · Computer Science · Year 7
9 minutesStep 3: decode the mystery bracelet
5 letters. It is somewhere you can see from a school window in north Wales. For each group of 5 beads: write the bits on the top line, then the number and the letter on the bottom line. A red divider marks the end of each letter.
| Letter | Beads | Adding the dark beads | Number | Letter |
|---|---|---|---|---|
| 1st | 00101 | 4 + 1 = 5 | 5 | E |
Slide 5 of 7 · Steps 4 and 5: design your bracelet, then count the patterns · Computer Science · Year 7
20 minutesStep 4: design your own bracelet. Step 5: how many patterns?
Step 4 (13 min): choose a 5-letter Welsh word, for example CYMRU, DRAIG, CALON, GWLAD, TEULU, or a place such as CONWY or TYWYN. Work out the 5 codes with working, then colour the beads: dark for 1, light for 0. Swap with a partner and decode theirs without being told the word.
Step 5 (7 min): answer the 4 “How many patterns?” questions.
| Letter | Number | 5-bit code | Working |
|---|---|---|---|
| C | 3 | 00011 | 2 + 1 = 3. 16, 8 and 4 are all bigger than 3, so those beads are light. |
Slide 6 of 7 · Self and partner check · Computer Science · Year 7
2 minutesDid your partner get the word you meant?
Tick each success criterion on your sheet that your work meets. Then correct 1 thing: if your partner decoded a different word, find the letter that went wrong and fix its working.
- I can turn a letter into a number and then into 5 binary digits, and show the place-value working.
- I can go the other way and decode a pattern of beads back into a letter.
- My own bracelet is correct: a partner decoded it and got the word I intended.
- I worked out how many patterns a given number of beads can make, and used that to explain why 5 beads are needed.
- I noticed that a code needs a way of telling where one letter ends and the next begins.
Slide 7 of 7 · Plenary review · Computer Science · Year 7
3 minutesQuick-check answers before handing in
Check your main answers before your worksheets are collected.
| Question | Correct answer |
|---|---|
| What is the 5-bit code for S? | S is 19, so 10011: 16 + 2 + 1. |
| What word was on the mystery bracelet? | ERYRI: E 00101, R 10010, Y 11001, R 10010, I 01001. |
| How many patterns can 5 beads make, and how many are left over after the alphabet? | 32 patterns, 6 spare after the 26 letters. |