Competency: Analysis & Evaluation
Case study: A library gives every book a four-digit code. The first three digits are the shelf number. The fourth digit is a check digit. It is chosen so that the whole four-digit code obeys a rule. When a code is typed, the computer tests the rule. If the rule fails, it knows there is a typing error.
(a) Rule 1 : the code must be divisible by 9. Find the check digit for a book on shelf 473, and write its code.
(b) A librarian types this code with the digits 7 and 3 interchanged. Will Rule 1 catch the error? Explain why.
(c) Rule 2 : the code must be divisible by 11. Find the check digit for shelf 473 under Rule 2. Will Rule 2 catch the same error of interchanging 7 and 3? Which rule is better for catching two neighbouring digits typed in the wrong order?
