Brought to you by the

Student Advisory Board

What is a Product Code

A unique sequence of numbers (and sometimes letters) which help identify what a product is when it is ready for sale.

Activity

You will calculate the last digit of the product code which is called the checksum and it’s used when scanning the barcode at grocery stores to make sure that the code was scanned properly.

When scanned the computer does the calculations you will do in this activity and if the check digit comes out incorrect it will warn you of that.

Materials

  • A writing utensil (pen, pencil, marker, etc.)
  • Paper
  • At least 1 household item that has a product code with either 12 or 13 digits
  • Calculator (not necessary, but may be helpful)

Directions

  1. Count how many digits are in the product code. If there are 12 digits continue on through the rest of the steps. If there are 13 digits then skip below to Step 7.
  2. From left to right, read the numbers and write them on alternating lines (our example is 0 48001 20802 X). Remember to keep the last digit a secret!
  3. Now separately add up the numbers in the top row and the bottom row
  4. Take the sum of the first row and multiply it by 3
  5. Now take the sum of the second row and add it to the number from Step 4.
  6. Take the number from Step 5 and calculate the next higher multiple of 10
    1. Take that number from Step 6 and subtract from it the number from Step 5.
  7. (For a 13 digit code) The first step is the same as for a 12 digit code: you would write down the code on alternating lines (assuming that the code is 9 300644 10321X where X is the last digit we are trying to find)
  8. Sum up all the numbers in the first row and then all the numbers in the second row
  9. Take the sum of the second row found in Step 8 and multiply it by 3 (in our example this would result in 12 * 3 = 36)
  10. Take the number from Step 9 and add it to the sum of the first row found in Step 8 (in this case that would be 36 + 21 = 57).
  11. Take the number found in Step 10 and think about what number you could add to it in order to get the nearest multiple of 10 larger than it. For example, in our case we have the number 57. The nearest multiple of 10 larger than 57 is 60. 60 - 57 = 3 so 3 is the number we want.
  12. Make sure you check that the numbers that are written down are correct and that your addition is also correct!

Thanks