Skip to content

An application that implements the Luhn Algorithm with JUnit tests.

Notifications You must be signed in to change notification settings

Josefin4/Luhn-Algorithm

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

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages