AdvertisementYour brand could be hereYour brand hereOn every Darslab page · students, parents and teachersinfo@darslab.comAsk for pricesPricesinfo@darslab.com
☰ Year plan · Computing

Counting like a computer

Week 26 · 4.3 Data representation · 3 lessons
1

Two ways to count

Computing 8: Topic 4.3, pp. 268–277
GoalUse place values to read denary numbers and to convert 4-bit binary numbers to denary and back.
New words
denary · the number system we use every day, with ten digits 0 to 9binary · the number system that computers use, with only two digits, 0 and 1place value · the value of a digit because of where it stands in the numberbit · one binary digit, a 0 or a 1
Explanation

In denary, each place is worth ten times the place to its right: ones, tens, hundreds, thousands. In the number 6,038, the 6 means six thousands, the 0 means no hundreds, the 3 means three tens and the 8 means eight ones. Binary works in the same way, but each place is worth twice the place to its right. A 4-bit binary number has places worth 8, 4, 2 and 1, and a 1 means “use this place”. To read a binary number, add up the place values that have a 1. To make one, start at the biggest place value and ask “Is my number greater than or equal to this?” If yes, write 1 and take the value away. If no, write 0. The largest 4-bit number is 1111, which is 15.

place value1000100101
denary 60386038
Worked examples
8421
bits1011
value used8021
Read 1011 as denary. The 1s are in the places worth 8, 2 and 1. Add them: 8 + 2 + 1 = 11. So 1011 is 11.
Place valueCompareBitLeft over
813 ≥ 8? yes15
45 ≥ 4? yes11
21 ≥ 2? no01
11 ≥ 1? yes10
Make binary from denary 13. The steps show the comparison and what is left over. 13 is 8 + 4 + 1, so the bits are 1101.
Place valueCompareBitLeft over
86 ≥ 8? no06
46 ≥ 4? yes12
22 ≥ 2? yes10
10 ≥ 1? no00
Now 6. It is not 8 or more, so the 8 place is 0. The answer 0110 has a leading zero, which keeps the number 4 bits long. Check by adding: 4 + 2 = 6.
Class activity

Place-value cards (no computer). Make four cards with 8, 4, 2 and 1 on the front and nothing on the back. Lay them in a row: a card face up means 1 and a card face down means 0. A partner says a number from 0 to 15 and you turn the cards to show it. Then reverse: your partner turns cards, and you read the number. Play for ten rounds. Which numbers use the most cards? What is the biggest number you can show with four cards? What would you need to show 16? Write your answers on paper.

Practice
1
Write 1100, 0010 and 1110 as denary numbers.
BinaryDenary
1100?
0010?
1110?
2
Write 2, 8 and 15 as 4-bit binary numbers.
Denary8421
2????
8????
15????
3
Why is 1111 the biggest 4-bit number? What would the next number be, and how many bits does it need?
4
A pupil writes 3 as 11 and says it is correct. What is the reason for writing 0011 instead?