Each item carries a barcode, and the cashier passes it over an optical scanner linked to the point-of-sale computer. The scanner reads the code, the computer looks up the matching product and price in its database, and the amount is added to your running total. Produce without a barcode is weighed and entered by a code the cashier keys in manually.