Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages