Try it on paper first. A hint, the key idea and the worked solution are here when you need them.
A school scoreboard shows each score with eight lamps in a row. A lamp that is on stands for 1 and a lamp that is off stands for 0. The home team has scored 213 points.
Binary is base 2. The 8-bit place values are 128, 64, 32, 16, 8, 4, 2 and 1, and 16 bits go on to 256, 512 and so on up to 32768. Binary to denary: add the place values under the 1s. Denary to binary: take away the largest place values that fit, or divide by 2 again and again and read the remainders from the bottom up.
Have you tried it?
Work it out on paper first. It is fine to get stuck or make a mistake: that is how we learn. When you are ready, go through the solution one step at a time, and check each step against your own.
Given. The denary number 213, to be shown with 8 bits.
Plan. Take away the place values that fit, from 128 down.
Step 1. 128 fits: write 1, and is left.
Step 2. 64 fits: write 1, and is left. 32 does not fit: write 0.
Step 3. 16 fits: write 1, and is left. 8 does not fit: write 0.
Step 4. 4 fits: write 1, and 1 is left. 2 does not fit: write 0. 1 fits: write 1.
Step 5. Count the lamps. The pattern 11010101 has five 1s, so 5 lamps are on.
Check. .
Answer: (a) 11010101. (b) 5 lamps.
Log in to join the discussion.
Loading…