Today is the 100th day of school at my son’s elementary school. I’ve had my binary influence on prior 100th day projects, and this year was to be no different. But alas, his class is not doing one this year. I didn’t want to waste the acorn tops we saved though, so I made my own 100th day project (well not quite — I didn’t glue them):
(Notice it’s a little asymmetric. The zero in the upper right has only 15 acorn tops, not 16 like the rest; I stole one for the times sign.)
There are two ways to solve this problem. The first way is to convert the operands to decimal and then multiply using decimal arithmetic:
 Binary 1010 = 1 x 2^{3} + 0 x 2^{2} + 1 x 2^{1} + 0 x 2^{0} = 2^{3} + 2^{1} = 8 + 2 = 10 decimal.
 10 x 10 = 100.
The second way is to multiply using binary arithmetic and then convert the answer to decimal:

1010 x 1010  0000 10100 000000 1010000  1100100
 Binary 1100100 = 1 x 2^{6} + 1 x 2^{5} + 0 x 2^{4} + 0 x 2^{3} + 1 x 2^{2} + 0 x 2^{1} + 0 x 2^{0} = 2^{6} + 2^{5} + 2^{2} = 64 + 32 + 4 = 100 decimal.
The first way is easier, but it’s not as much fun 🙂 .
(Cookies must be enabled to leave a comment...it reduces spam.)