Barcode Magic

The ubiquitous barcodes serve as the basis for the following computer magic. The applet below is made to represent the standard barcode representation of the UPC-A codes. This is something that is commonly (and not quite correctly) referred to as the barcode. Do the following: pick up a product. It could be a bottle of Cola, an ice cream pack, or anything else with an UPC-A code and a barcode on it. Initially the applet displays 12 question marks. By clicking on them you can upgrade each to any decimal digit. Do this with 11 digits and leave one question mark. Press the "Check" button. The computer will announce the missing digit.

If this is not magic, what is?

This applet requires Sun's Java VM 2 which your browser may perceive as a popup. Which it is not. If you want to see the applet work, visit Sun's website at, download and install Java VM and enjoy the applet.

Barcode magic - an exercise in modulo arithmetic

What if applet does not run?

Related material

  • An Arithmetic Magic Trick
  • Bachet's Magic Trick
  • Gergonne's Magic Trick
  • Hummer's Mind Reader
  • Magic in Square
  • Math Telepathy
  • Number Guessing Game. All by Computer
  • Arithmetic magic matrix
  • Calendar Magic: an Interactive Gizmo
  • Two Numbers Guessing Game
  • |Contact| |Front page| |Contents| |Arithmetic| |Store|

    Copyright © 1996-2017 Alexander Bogomolny


    Search by google: