Professional Documents
Culture Documents
2 2+check+digits
2 2+check+digits
Check digits
2.2 Methods of error detection | Check digits CAMBRIDGE IGCSE (0478/0984)
Automatic
Parity block
Repeat
checks
Query (ARQ)
Error detection
methods
Echo checks
2.2 Methods of error detection | Check digits CAMBRIDGE IGCSE (0478/0984)
Check digits
A check digit is the last digit included in a code or other identification
number. It is calculated from all the other digits in the code.
Check digits are commonly used with:
• Barcodes
• ISBN numbers
• Vehicle Identification Numbers (VIN)
Check digit
2.2 Methods of error detection | Check digits CAMBRIDGE IGCSE (0478/0984)
Check digits
Check digits are used to identify errors that can occur during data entry, typically caused by:
• Mistyping
• Scanning error – e.g., a barcode
Product code 8 1 7 5 2 5 7 6 5
2.2 Methods of error detection | Check digits CAMBRIDGE IGCSE (0478/0984)
Product code 8 1 7 5 2 5 7 6 5
Weighting 10 9 8 7 6 5 4 3 2
2.2 Methods of error detection | Check digits CAMBRIDGE IGCSE (0478/0984)
Product code 8 1 7 5 2 5 7 6 5
Weighting 10 9 8 7 6 5 4 3 2
Multiply 80 9 56 35 12 25 28 18 10
2.2 Methods of error detection | Check digits CAMBRIDGE IGCSE (0478/0984)
Product code 8 1 7 5 2 5 7 6 5
Weighting 10 9 8 7 6 5 4 3 2
Multiply 80 9 56 35 12 25 28 18 10
80 9 56 35 12 25 28 18 10
Addition 273
Add all the numbers together
2.2 Methods of error detection | Check digits CAMBRIDGE IGCSE (0478/0984)
STEP 4: The total is divided by 11, leaving us with an answer of 24 – and a remainder of 9.
Product code 8 1 7 5 2 5 7 6 5
Weighting 10 9 8 7 6 5 4 3 2
Multiply 80 9 56 35 12 25 28 18 10
80 9 56 35 12 25 28 18 10
Addition 273
Add all the numbers together
Remainder Remainder when the sum is divided by 11 e.g., 273 DIV 11 = 24 remainder 9 9
2.2 Methods of error detection | Check digits CAMBRIDGE IGCSE (0478/0984)
STEP 5: The remainder is then subtracted from 11 to give us the check digit, 2
Note that if the result of subtracting the remainder from 11 is 10, then the check digit is X.
So, the complete number with the check digit is: 8 1 7 5 2 5 7 6 5 2
Product code 8 1 7 5 2 5 7 6 5
Weighting 10 9 8 7 6 5 4 3 2
Multiply 80 9 56 35 12 25 28 18 10
80 9 56 35 12 25 28 18 10
Addition 273
Add all the numbers together
Remainder Remainder when the sum is divided by 11 e.g., 273 DIV 11 = 24 remainder 9 9
Subtraction Subtract the remainder from 11 e.g., 11 – 9 = 2 2
2.2 Methods of error detection | Check digits CAMBRIDGE IGCSE (0478/0984)
STEP 1: Starting from the left, each digit is given a weighting – including the check digit, which can now be assigned a
weighting of 1.
Product code 8 1 7 5 2 5 7 6 5 2
Weighting 10 9 8 7 6 5 4 3 2 1
2.2 Methods of error detection | Check digits CAMBRIDGE IGCSE (0478/0984)
Product code 8 1 7 5 2 5 7 6 5 2
Weighting 10 9 8 7 6 5 4 3 2 1
Multiply 80 9 56 35 12 25 28 18 10 2
Addition
Remainder
2.2 Methods of error detection | Check digits CAMBRIDGE IGCSE (0478/0984)
Product code 8 1 7 5 2 5 7 6 5 2
Weighting 10 9 8 7 6 5 4 3 2 1
Multiply 80 9 56 35 12 25 28 18 10 2
80 9 56 35 12 25 28 18 10 2
Addition 275
Add all the numbers together
Remainder
2.2 Methods of error detection | Check digits CAMBRIDGE IGCSE (0478/0984)
STEP 3: The total is divided by 11. If the remainder is 0, the number is valid.
Product code 8 1 7 5 2 5 7 6 5 2
Weighting 10 9 8 7 6 5 4 3 2 1
Multiply 80 9 56 35 12 25 28 18 10 2
80 9 56 35 12 25 28 18 10 2
Addition 275
Add all the numbers together
Remainder Remainder when the sum is divided by 11 e.g., 275 DIV 11 = 25 remainder 0 0
2.2 Methods of error detection | Check digits CAMBRIDGE IGCSE (0478/0984)
Check digits
A check digit is the last digit included in a code or other identification number.
• Calculated from all the other digits in the code.
• Commonly used with barcodes, ISBN numbers and Vehicle Identification Numbers (VIN).