Presentation is loading. Please wait.

Presentation is loading. Please wait.

香港身份證號碼 ISBN, Visa, EAN, Code 3 of 9

Similar presentations


Presentation on theme: "香港身份證號碼 ISBN, Visa, EAN, Code 3 of 9"— Presentation transcript:

1 香港身份證號碼 ISBN, Visa, EAN, Code 3 of 9
檢查數位 Check Digit 香港身份證號碼 ISBN, Visa, EAN, Code 3 of 9 Check Digit

2 HKID#: A 1 2 3 4 5 6 (7) 檢查數位 使用檢查數位作數據驗證: 為何使用檢查數位? 身分證號碼 國際標準書號 ISBN
Master / Visa Card 銀行戶口編號 EAN商品條碼 Code39條碼 EAN-UCC 為何使用檢查數位? 防止輸入錯誤 Check Digit

3  A 1 2 3 4 5 6 (7) A A 1 2 3 4 5 6 (7) HKID: 比重 weight 9 8 7 6 5
4 3 2 比重 weight Check Digit

4 Q.1 HKID:  A 1 2 3 4 5 6 (7) Sum = 589 + 108 Sum = 589 + 108
522 80 7 12 15 16 Sum = 589 + 108 Sum = 589 + 108 + 17 + 26 + 35 + 44 + 53 + 62 + 71 = 686 + 17 + 26 + 35 + 44 + 53 + 62 + 71 686 ABCDE FGHIJ KLMNO PQRST UVWXY Z 10 15 20 25 30 35 Check Digit

5 是否可以被11整除? 6 2 ) 11 686 4 11 Sum / 11 = 62 66 26 22 不合法! 4 Check Digit

6 HKID: A123456(x) x=? Sum = 589 + 108 Sum = 589 + 108
522 80 7 12 15 16 Sum = 589 + 108 Sum = 589 + 108 + 17 + 26 + 35 + 44 + 53 + 62 + ?1 = 686 + 17 + 26 + 35 + 44 + 53 + 62 + 71 679 Sum / 11 = 61 … 8 餘數 x = 118 = 3 x = A 0 Check Digit

7 驗證 679+3 679+8 6 2 6 2 ) ) 11 682 11 687 66 66 22 27 22 22 5 Check Digit

8 HKID 小測 A123456(x) 求x ABCDE FGHIJ KLMNO PQRST UVWXY Z Sum = 589 + …
589 = 522 Check Digit

9 Q.2 HKID: K202120(x) x=? ) Sum = 589 + 108 Sum = 589 + 208
522 160 14 10 4 6 Sum = 589 + 108 Sum = 589 + 208 + 27 + 06 + 25 + 14 + 23 + 02 + ?1 = 686 + 17 + 26 + 35 + 44 + 53 + 62 + 71 6 5 716 ) 11 716 1 11 Sum / 11 = 65 66 56 x = 111 = A 55 1 Check Digit

10 Q.3 HKID: Z632475(x) x=? ) Sum = 589 + 108 Sum = 589 + 358
522 280 42 18 10 16 21 Sum = 589 + 108 Sum = 589 + 358 + 67 + 36 + 25 + 44 + 73 + 52 + ?1 = 686 + 17 + 26 + 35 + 44 + 53 + 62 + 71 8 3 919 ) 11 919 6 11 Sum / 11 = 83 88 39 x = 116 = 5 33 6 Check Digit

11 Q.4 HKID: P321132(x) x=? ) Sum = 589 + 258 + 37 + 26 + 15
522 280 42 18 10 16 21 Sum = 589 + 258 + 37 + 26 + 15 + 14 + 33 + 22 + ?1 = 686 Sum = 589 + 108 + 17 + 26 + 35 + 44 + 53 + 62 + 71 777 70 7 11 ) Sum / 11 = 70 11 777 77 x = 117 = 4 7 Check Digit

12 Q.5 HKID: Y125321(x) x=? ) Sum = 589 + 108 Sum = 589 + 348
522 272 7 12 25 6 2 Sum = 589 + 108 Sum = 589 + 348 + 17 + 26 + 55 + 34 + 23 + 12 + ?1 = 686 + 17 + 26 + 35 + 44 + 53 + 62 + 71 7 8 858 ) 11 858 11 Sum / 11 = 78 77 88 x = 88 Check Digit

13 ISBN-10: check digit 檢查數位
X 10 9 8 7 6 5 4 3 2 1 Sum = 9(10) +6(9) +2(8) +0(7) +0(6) +1(5) +0(4) +0(3) +6(2) +X(1) = 187  187可以被11整除 Check Digit

14 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 VISA: Sum1 = 1(2) +3(2) +6(2) +8(2) +1(2) +3(2) +6(2) +8(2) = = = 36 Sum2 = = 44 Total = = 80  80可以被10整除 Check Digit

15 EAN13: 489102101011X  60可以被10整除 Sum = (8+1+2+0+0+1) (3)
1 3 1 3 1 3 1 3 1 3 1 3 1 EAN13: X Sum = ( ) (3) X = X = X X = 8  60可以被10整除 Check Digit

16 CODEK Code 3 of 9: CODE = 12 + 24 + 13 + 14 = 63 63 % 43 = 20
數值 value 字符 char 10 A 20 K 30 U 40 / 1 11 B 21 L 31 V 41 + 2 12 C 22 M 32 W 42 % 3 13 D 23 N 33 X 4 14 E 24 O 34 Y 5 15 F 25 P 35 Z 6 16 G 26 Q 36 - 7 17 H 27 R 37 . 8 18 I 28 S 38 space 9 19 J 29 T 39 $ CODE = = 63 63 % 43 = 20 Check digit = K Check Digit


Download ppt "香港身份證號碼 ISBN, Visa, EAN, Code 3 of 9"

Similar presentations


Ads by Google