Error Detection & Correction (Ch 5)

Optional: Validation

Error detection codes are built into many of the numbering systems we use in daily life to prevent simple mistakes. Things like credit card numbers and book ISBNs are designed so that if someone mistypes a digit the error is easily detected.

Credit Cards

The basic process for checking a credit card looks like this:


Image copyright

You can try it out by hand with your own card or on this spreadsheet:

Credit Card Validation Spreadsheet.

Book ISBN numbers are validated with a stair-step code. You will build a program to do this later on in the course, but if you are interested you can read about how the validation works here.

You have attempted of activities on this page