credit_card_numbers
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
credit_card_numbers [2025/06/22 09:59] – frchris | credit_card_numbers [2025/06/22 11:15] (current) – [Generating Credit Card Numbers] frchris | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Credit Card Numbers ====== | ====== Credit Card Numbers ====== | ||
- | Credit card numbers are not random. | + | Credit card numbers are not random. |
+ | a customer or a clerk hasn't made a mistake typing in the long 16 digit number. In fact even magnetic strip fail, and errors in transmission from a chip reading devices can also fail to send the correct number. | ||
+ | |||
+ | They use something called [[https:// | ||
+ | |||
+ | |||
+ | |||
+ | For this lab, we will write and test the validity of a 16 digit credit card. | ||
+ | |||
+ | ===== Generating Credit Card Numbers===== | ||
+ | |||
+ | |||
+ | The practice of TDD (Test Driven Development) starts with writing the code to test our Validity software. | ||
+ | This means we need to get some valid and invalid numbers and see if our code can spot the difference. | ||
+ | |||
+ | Here is a [[https:// | ||
+ | |||
+ | |||
+ | ===== Checking with Luhn's ===== | ||
+ | |||
+ | |||
+ | ===== Finding a Better Way ===== | ||
+ | |||
+ | [[https:// | ||
credit_card_numbers.1750600787.txt.gz · Last modified: 2025/06/22 09:59 by frchris