Question: CSC 143 A useful technique for catching typing errors is to use a check digit. For example, International Article Number 13 (EAN 13) uses the
CSC 143

A useful technique for catching typing errors is to use a check digit. For example, International Article Number 13 (EAN 13) uses the last digit (also known as checkdigit) to validate the correctness of the first 12 digits. For more info on EAN 13. see: http://en.wikipedia.org/wikki/International Article Number (EAN If EAN13 is 4006381333931 the check code is computed as follows: The nearest multiple of 10 that is equal or higher than the sum, is 90. Subtract them: 90 - 89 = 1, this is the last digit of the barcode. Write a Java program that asks the user for a EAN13 and validates it as either correct or incorrect (display a message accordingly). Your program should continue to run, to validate multiple EAN 13 numbers, untill the user decides to exit the program, by entering 'Q' or 'Quit. Your program is allowed to use any of the concepts covered through the first 8 Chapters and topics from the appendices from our class text book
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
