Practical lesson
In this practical lesson the three binary operations are practised. Before calculating, write the numbers aligned by places and mark the carries and borrows. To check a subtraction, add the result to the subtrahend: it should give the minuend. Addition can also be checked by subtraction. In binary numbers with a fractional part, line the commas up; if the fractional parts are of different length, add zeros at the end (10,1 = 10,10). Common causes of errors: writing 1 + 1 as 2, forgetting a carry, shifting the rows wrongly in multiplication. Also judge whether the result is of a sensible size.
A binary calculation can be checked in decimal. We got 110 + 11 = 1001. In decimal 110₂ = 6, 11₂ = 3, 6 + 3 = 9 and 1001₂ = 9: the answers agree. When two methods give the same result, we can trust it more.
Cashiers and accountants check a sum by the inverse operation, a programmer tests a function with sample values, and an engineer compares results from two methods.
Choose two numbers below 10, write them in binary, add them in binary and check the result with decimal arithmetic.
| 1 | 0 | , | 1 | 0 | ||
| + | 1 | , | 1 | 1 | ||
| = | 1 | 0 | 0 | , | 0 | 1 |
“Error hunters”: the teacher writes 5 examples on the board (2 deliberately wrong). Pairs find the mistakes and write the correct answers.