论文部分内容阅读
2016年12月一、(满分25分)超市里的商品都有一个识别的号码,这个号码用可由光学扫描仪读出的条形来编码,通常称为条码.例如下图所示.图中给出的识别号码是089600124569.这个号码称为通用产品码(UPC),广泛用于商品编码.在大多数情况下,分配给产品的号码是一个12位数字,前11位的数字是商品项目代码,最后1位是校验码.校验码用于检验前11位商品编码的正确性.检验的原理是要保证同类商品的所有12位编
December 1, 2016 (out of 25 points) There is an identification number for a product in a supermarket. This number is coded by a bar that can be read by an optical scanner. It is usually called a bar code. For example, the following figure shows. The identification number given is 089600124569. This number is called Universal Product Code (UPC) and is widely used for commodity coding. In most cases, the number assigned to the product is a 12-digit number, and the first 11 digits are commodity items. Code, the last one is the check code. The check code is used to verify the correctness of the first 11 product codes. The principle of the test is to ensure all 12-digit codes of similar products.