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, 22.06.2019 13:30
In which phase does software coding and testing happen in the spiral model? the spiral model does not have a separate testing phase. both, software coding and testing occurs during the phase.
Answers: 3
question
Computers and Technology, 22.06.2019 15:00
The three logical operators used to write compound conditions are "and," "or," and "not." a: true b: false
Answers: 2
question
Computers and Technology, 23.06.2019 07:00
What are three software programs for mobile computing?
Answers: 1
question
Computers and Technology, 24.06.2019 17:40
The value of sin(x) (in radians) can be approximated by the alternating infinite series create a function (prob3_2) that takes inputs of a scalar angle measure (in radians) and the number of approximation terms, n, and estimates sin(x). do not use the sin function in your solution. you may use the factorial function. though this can be done without a loop (more efficiently), your program must use (at least) one. you may find the mod() function useful in solving the problem.
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
Mathematics, 01.11.2019 04:31
question
Mathematics, 01.11.2019 04:31