Answer:
Part 1) Is not a valid code
Part 2) The last digit should be 6 in order to make it a valid code
Step-by-step explanation:
we have
2-81273-05213-8
we know that
The last number is the check digit (8)
Verify the UPC number
step 1
Sum the digits in the odd positions, starting at the left
so
2+1+7+0+2+3=15
step 2
Multiply the answer in step 1 by 3
15(3)=45
step 3
Sum the numbers in the even positions, ignoring the last (12th) digit because that is the check digit that you are verifying
Do not multiply this number by 3.
8+2+3+5+1=19
step 4
Add the results from steps 2 and 3
45+19=64
step 5
Subtract the number in step 4 from the next higher multiple of 10. In this example, the next multiple of 10 after 64 is 70, so subtract 64 from 70:
70-64=6
This number is not equal to the check digit (8)
therefore
Is not a valid code
The last digit should be 6 in order to make it a valid code