Beauty of Codes: Ms. Toni Rose D. Docena
Beauty of Codes: Ms. Toni Rose D. Docena
Beauty of Codes: Ms. Toni Rose D. Docena
UPC 7 7 0 8 3 2 3 0 8 5 4
Multiply each odd- 3 1 3 1 3 1 3 1 3 1 3
numbered position
by 3
Results 21 7 0 8 9 2 9 0 24 5 12
Add the results 97
Subtract the
resulting sum from
the number that is a 100 – 97 = 3 (check digit)
multiple of 10 (100 is the nearest multiple of 10 to 97)
nearest to it
Results 24 8 0 7 3x 2 9 0 9 5 24 4
Add the 92 + 3x = 110 (sum must be a number that ends with zero)
results 3x = 110 – 92
3x = 18
x = 6 (fifth digit)
UPC 8 8 0 7 6 2 3 0 3 5 8 4
US Postal Money Orders
The first 10 digits are the document number, and the last digit is
the check digit.
The check digit is the remainder when the sum of the digits in the
identification number is divided by 9. (Modulo 9)
A11= (A1 +A2 +A3 +A4 +A5 +A6 +A7 +A8 +A9 +A10) (mod 9)
A11= (2 + 1 +3 +4 +9 +0 +0 +2 +7 + 3) (mod 9)
= 31 (mod9)
A11= 4 since 31 / 9 = 3 r. 4
Determine the check digit of the postal money order with
identification number 2415532983
A11= (A1 +A2 +A3 +A4 +A5 +A6 +A7 +A8 +A9 +A10) (mod 9)
A11= (2 + 4 +1 +5 +5 +3 +2 +9 +8 + 3) (mod 9)
= 42 (mod9)
A11= 6 since 42 / 9 = 4 r. 6
ELABORATE
Let’s Try
A set of vertical bars (long and short) and spaces which provide an
indispensable tool for tracking a variety of data from pricing
inventory.
Bar Code
A set of vertical bars (long and short)
and spaces which provide an
indispensable tool for tracking a
variety of data from pricing
inventory.
ZIP + 4 code
ZIP code of the US Postal Service
Which started in 1983,
contains 52 long and short vertical
bars.
The long bars at the beginning and the end of the ZIP+4 code serve
as guard bars of the remaining 50 bars.
The 50 bars are divided into blocks of 5 and each block contains two
long bars and three short bars.
Each block represents a single digit and the 10th digit is used for
error correction.
ZIP + 4 code is denoted by: A1A2A3A4A5A6A7A8A9A
5 5 4 3 5 9 9 x 2 10 Check digit
Sum = 52 + x
60 = 52 + x
60 – 52 = x 5 5 4 3 5 9 9 8 2 10
8=x
Elaborate
Part 1.
Using digit sum (Ds), determine if the following numbers are divisible
by 9 by writing DBN. If it’s not divisible by 9, determine the remainder.
1. 3, 987
2. 563
3. 528,249
4. 732, 465
5. 15,874
Part 2. Determine what is asked in every item and show your
complete process.