Barcode UPC ( Universal Product Code) Commonly known as barcode “Barcodes are black and white lines of varying widths followed underneath by a series.

Post on 23-Dec-2015

218 Views

Category:

Documents

0 Downloads

Preview:

Click to see full reader

Transcript

Barcode

UPC ( Universal Product Code)

Commonly known as barcode

“Barcodes are black and white lines of varying widths followed underneath by a series of numbers.”

Consists of 12 numerical digits, which are uniquely assigned in each trade item.

Most common form is UPC-A.

WHAT DO THESE

NUMBERS

MEAN?

FORMATTING

Most common formatting used today is the UPC-A

Composed of 3 segments Manufacturer’s number ( 6-9 digits) Product number ( 2-5 digits) Check number

Number SystemVariations

FORMATTING…

Product category – first number Manufacturer’s Number – the next 5 digits Product Number – the next 5 digits; defines

the specific productCheck Number- the last digitEAN – 13 is the superset of UPC ( adding a

digit at the beginning of the UPC) but this does not change the check digit.

CHECK DIGITS

1. Add the digits in the odd-numbered position (first, third, fifth, etc.) together and multiply by three.

2. Add the digits in the even-numbered positions (second, fourth, sixth, etc.) to the result in step 1.

3. Find the result modulo 10.4. If the result is not zero, subtract the result from ten.

Universal Product Code. In Wikipedia, the free encyclopedia.Retrieved February 28, 2013 from (http://en.wikipedia.org/wiki/Universal_Product_Code)

EXAMPLE

03600029145x where x is the unknown digitAdding the odd-numbered digits:(0 + 6 + 0 + 2 + 1 + 5) * 3 = 14(3) = 42Adding the even-numbered digits:( 3 + 0 + 0 + 9 + 4 ) = 16Add 42 + 16 = 58Calculate: 58 modulo 10 = 8Subtract from 10: 10 – 8 = 2Therefore the check digit is 2.

STOP!

LET’S HAVE A SHORT

EXERCISE

!

4 8 0 00 1 6 0 4 2 3 2 X

4 8 0 0 2 1 6 1 1 0 0 6 Y

6 9 4 7 5 0 3 7 6 3 4 6 Z

Solve for the check digit.

Number System

0, 1, 6, 7, 8 – most products2 – local use ( fruits, vegetables and meat)3- drugs4 – local use (loyalty cards or store

coupons)5 – coupons ( can be doubled or tripled)9 – coupons ( can’t be doubled or tripled)

VARIATIONS

UPC-E ( zero suppressed version of UPC)EAN – superset of UPCUPC-5 - 5 digit supplement of UPC UPC-C - 12 digit code with a check digitUPC-D - variable length code (12 digits or

more) with the 12th digit being the check digit

UPC-B - 12-digit version of UPC with no check digit

Click icon to add picture

STEPS

•Double every odd-numbered digits•Add these new digits to the undoubled ones.•Note: All double digit numbers are added as a sum of their digits.•If the fi nal sum is divisible by 10 then the credit card number is valid.

Example

4417 1234 5678 9113

STOP!

LET’S HAVE A SHORT

EXERCISE

!

5125 7105 2232 8114

Try to see if the credit card is valid.

References:

Universal Product Code. In Wikipedia, the free encyclopedia. Retrieved February 28, 2013, from (http://en.wikipedia.org/wiki/Universal_Product_Code)

Summers, Veronica. How to decode a barcode algorithm. (n.d.). Retrieved February 28, 2013, from (http://www.ehow.com/how_7831271_decode-barcode-algorithm.html)

Johnson, Kimberly. How to Understand Barcodes. (n.d.). Retrieved February 28, 2013, from,(http://www.ehow.com/how_6150154_understand-barcodes.html)

Moore, Ann. Barcode Interpretation. (n.d.) Retrieved February 28, 2013, from (http://www.ehow.com/facts_7916928_barcode-interpretation.html)

Cracking the Credit Card Code. ( January 20, 2011.) Retrieved February 28, 2013, from (http://www.mint.com/blog/trends/credit-card-code-01202011/)

top related