subject

The luhn-10 algorithm is a weighted algorithm. each digit in the credit card number is multiplied by a weight. these weights are then summed, forming the checksum. the checksum is divided by 10. if the remainder is 0, the credit card number is valid. if the remainder is not 0, the user made an error and can be prompted to re-enter their credit card data. the weighting for the luhn-10 algorithm is as follows: beginning with the first (ie leftmost) digit in the credit card, every other number is multiplied by 2. if the product results in a 2 digit number (eg 6 x 2 = 12) then the individual digits (eg 1 and 2) are added to the checksum. the remaining digits of the credit card number are simply added to the checksum. that is, their weight is 1.some examples are given below, but this algorithm will work with your visa or mastercard number. try it! write a method in java named luhnchecksum which takes an array of integers as an input parameter and returns the integer checksum computed by the above algorithm.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 11:30
Which excel file extension stores automated steps for repetitive tasks?
Answers: 1
question
Computers and Technology, 23.06.2019 12:00
What does the level 1 topic in a word outline become in powerpoint? a. first-level bullet item b. slide title c. third-level bullet item d. second-level bullet item
Answers: 1
question
Computers and Technology, 23.06.2019 21:00
Which set of steps will organize the data to only show foods with more than 100 calories and rank their sugar content from greatest to least?
Answers: 1
question
Computers and Technology, 24.06.2019 10:20
Multiple choice project create a program with two multiple choice questions. 1. users have two attempts only, show attempt number each time. hint: while loop with break control. (20%) 2. only one correct answer for each question, use switch case for each question. (20%) 3. show total score after the two questions are answered. hint: . (20%) 4. user have options to answer the two questions again if first attempt score is not 100%. hint: if statment. (20%) 5. use string method .toupper() to allow users to enter with lowercase or uppercase letters. (20%) 1. where is the capital of the state of florida? a. orlando b. tallahassee c. miami d. tampa b 2. where is walt disney world park located in florida? a. orlando b. tallahassee c. miami d. tampa a
Answers: 1
You know the right answer?
The luhn-10 algorithm is a weighted algorithm. each digit in the credit card number is multiplied by...
Questions
question
Spanish, 29.09.2019 12:00
question
English, 29.09.2019 12:00
question
Geography, 29.09.2019 12:00
Questions on the website: 13722363