It turns out that this is a great way of taking what could be a difficult theory lesson on binary and turning it into something much more practical and interesting. In Scratch, pupils start by inputting code relating to the 5 numbered cards shown below:

There are patterns in how the 1s are spread out in each column. In the ones column they alternate 1, 0, 1, 0, 1, 0, . . . In the twos column the pattern is 1, 1, 0, 0, 1, 1, 0, 0, and so on. There are patterns in all the columns.
The trick works by effectively converting your decimal number in binary and then convering it back into decimal.

8 + 4 + 2 + 1 = 15.
Supporting Scratch files can be downloaded from the Computing at School website.
Open the worksheet in Google docs
No comments:
Post a Comment