Keeper 8: UPC Codes S.A.S. #12 1 – 3 Credit Cards S.A.S. #13 1 - 4
Keeper 8: UPC Codes S.A.S. #12 1 – 3 Credit Cards S.A.S. #13 1 - 4
What is it? A UPC is a 12 digit code generally used to identify a product. Can also be used as coupons Why use a UPC instead of just a price tag? Can change price in computer easily Universal PRODUCT Code not Universal PRICE code If you decided to change the price of an item you would have to but new bar codes on everything!
Parts of the code The 12 digits are broken up into the following Manufacturer Number (6 digits) A company(manufacturer) is assigned a specific code that is used for all of their products Product Number (5) A number specific to a single product the manufacturer sells Check Digit (1) The check digit is determined by the values of the manufacturer and product numbers
How is a code valid? The purpose of a check digit is to guard against input errors or fraud. Follow these steps: Underline the odd positions, add them up. Multiply by 3 Add the even positions up Add the two together The sum must end in a 0 to be valid
1.) Show that 0-58200-48826-5 is a valid UPC number. 0 - 5 8 2 0 0 - 4 8 8 2 6 - 5 2.) Show that 0-52200-48826-5 is a invalid UPC number. 0 - 5 2 2 0 0 - 4 8 8 2 6 - 5 Valid = 0 Invalid = 2
3.) Determine the check digit (d) for the UPC number 38137009213d.
50,000,000,000,000 Credit Cards
Rule: 2 x (Odd spots) + # of Odd spots > 4 + (Even Spots) = 2.) VISA: 4162 0012 3456 789 d d = 3
3.) What is the check digit (d) for the MASTER CARD number? 4.) Show that 4128 0012 4389 0110 is an invalid Visa credit card number. d = 3 NOT VALID
ARE YOU READY?? 1.) Is the following UPC numbers valid codes 0-51231-69421-5 2.) Find the check digit (d) for the UPC numbers 0-32692-03012 d 3.) Is the following Credit Card number valid? 4716 5868 1970 205 6 4.) Find the check digit (d) for the Credit Card number 5310 6275 7512 805 d