Josefin4 / Luhn-Algorithm

An application that implements the Luhn Algorithm with JUnit tests.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Luhn-Algorithm

This command line app takes an input of numbers (of any length) and performs a checksum on the last digit by using the Luhn Algorithm.

It displays:

- The full user input, with the check digit separated
- A comparison of the provided check digit compared to the expected (calculated) check digit
- A clear output of valid or invalid for the user input
- An indication of whether the solution is long enough to be a credit card number (16 digits) or not

The application also consists of 10 JUnit tests.

About

An application that implements the Luhn Algorithm with JUnit tests.


Languages

Language:Java 100.0%