Ads

# credit card validation

1. Double every second digit from right to left. If doubling of a digit results in a two-digit number, add up the two digits to get a single-digit number. 2 * 2 = 4 2 * 2 = 4 4 * 2 = 8 1 * 2 = 2 6 * 2 = 12 (1 + 2 = 3) 5 * 2 = 10 (1 + 0 = 1) 8 * 2 = 16 (1 + 6 = 7) 4 * 2 = 8
1. Now add all single-digit numbers from Step 1. 4 + 4 + 8 + 2 + 3 + 1 + 7 + 8 = 37
2. Add all digits in the odd places from right to left in the card number. 6 + 6 + 0 + 8 + 0 + 7 + 8 + 3 = 38
3. Sum the results from Step 2 and Step 3. 37 + 38 = 75
4. If the result from Step 4 is divisible by 10, and it is starting with the correct numbers, which are given at the beginning of the document, and the number of digits is between 13 and 16, then the card number is valid; otherwise, it is invalid.

i made some effort, but not all of it. help me for completing this algorithm. i only allow to use for, while, switch statement.

View Answers

Ads

Related Tutorials/Questions & Answers:
Credit Card Validation Application
Credit Card Validation Application   Write a c program that reads a credit card number from the user. The c program will display: ΓΆβ?¬ΒΆ Valid: if the credit card is valid ΓΆβ?¬ΒΆ Invalid: if the credit card is invalid
credit card validation
credit card validation   Double every second digit from right to left... digits in the odd places from right to left in the card number. 6 + 6 + 0 + 8 + 0... is between 13 and 16, then the card number is valid; otherwise, it is invalid. i
Advertisements
Version of com.palindromicstudios>credit-card-view dependency
List of Version of com.palindromicstudios>credit-card-view dependency
Maven Dependency credit-card-view >> 1.0.0
You should include the dependency code given in this page to add Maven Dependency of com.palindromicstudios >> credit-card-view version1.0.0 in your project
ModuleNotFoundError: No module named 'kupfer_plugin_credit_card_generator'
ModuleNotFoundError: No module named 'kupfer_plugin_credit_card_generator' ...: ModuleNotFoundError: No module named 'kupfer_plugin_credit_card_generator' How to remove the ModuleNotFoundError: No module named 'kupfer_plugin_credit_card
ModuleNotFoundError: No module named 'kupfer_plugin_credit_card_generator'
ModuleNotFoundError: No module named 'kupfer_plugin_credit_card_generator' ...: ModuleNotFoundError: No module named 'kupfer_plugin_credit_card_generator' How to remove the ModuleNotFoundError: No module named 'kupfer_plugin_credit_card
ModuleNotFoundError: No module named 'odoo10-addon-account-payment-credit-card'
ModuleNotFoundError: No module named 'odoo10-addon-account-payment-credit-card...: ModuleNotFoundError: No module named 'odoo10-addon-account-payment-credit-card' How...-payment-credit-card' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'odoo11-addon-account-payment-credit-card'
ModuleNotFoundError: No module named 'odoo11-addon-account-payment-credit-card...: ModuleNotFoundError: No module named 'odoo11-addon-account-payment-credit-card' How...-payment-credit-card' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'odoo11-addon-account-payment-credit-card'
ModuleNotFoundError: No module named 'odoo11-addon-account-payment-credit-card...: ModuleNotFoundError: No module named 'odoo11-addon-account-payment-credit-card' How...-payment-credit-card' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'odoo12-addon-account-payment-credit-card'
ModuleNotFoundError: No module named 'odoo12-addon-account-payment-credit-card...: ModuleNotFoundError: No module named 'odoo12-addon-account-payment-credit-card' How...-payment-credit-card' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'odoo12-addon-account-payment-credit-card'
ModuleNotFoundError: No module named 'odoo12-addon-account-payment-credit-card...: ModuleNotFoundError: No module named 'odoo12-addon-account-payment-credit-card' How...-payment-credit-card' error? Thanks   Hi, In your python
validation
validation  validation
validation
validation  we are doing payroll system project in java.So pls provide the complete validation code for employee master form
validation.....
validation.....  hi.......... thanks for ur reply for validation code. but i want a very simple code in java swings where user is allowed to enter only numerical values in textbox , if he enters string values then it should
validation
Validation method valid the in put. otherwise call the javascript onsubmit to check... code.Ok if you use struts then you can use Validation method valid the in put
Shoping Card
Shoping Card  Complete coding for online shoping card
Validation
); JLabel label=new JLabel("JTable validation Example",JLabel.CENTER); JPanel panel=new JPanel(); panel.add(scroll); JFrame frame=new JFrame("JTable validation
validation
validation  please help me to check validation for <form> <table class="form"> <tr> <td class="col1"> <label>Sno:</label> </td> <td
ModuleNotFoundError: No module named 'credit'
ModuleNotFoundError: No module named 'credit'  Hi, My Python... 'credit' How to remove the ModuleNotFoundError: No module named 'credit'... to install padas library. You can install credit python with following command
ModuleNotFoundError: No module named 'credit'
ModuleNotFoundError: No module named 'credit'  Hi, My Python... 'credit' How to remove the ModuleNotFoundError: No module named 'credit'... to install padas library. You can install credit python with following command
Tomahawk validateCreditCard tag
is used to validate a Credit Card Number entered by the user. If we want the user to enter a valid Credit Card Number then this validation...; <t:outputText value="Credit Card Number:"/> <h:inputText
ModuleNotFoundError: No module named 'card'
ModuleNotFoundError: No module named 'card'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'card' How to remove the ModuleNotFoundError: No module named 'card' error
Problem in card demo example.
Problem in card demo example.  Hi, I have successfully shows... one card of bunch, then its shows back of its above card, hence the top most card is the one card that shows full when drag and move around the screen. please
complete coding for shopping card
complete coding for shopping card  complete coding for shopping card   Please visit the following link: Shopping Cart Application
ModuleNotFoundError: No module named 'git_credit'
ModuleNotFoundError: No module named 'git_credit'  Hi, My Python... 'git_credit' How to remove the ModuleNotFoundError: No module named 'git_credit' error? Thanks   Hi, In your python environment you
ModuleNotFoundError: No module named 'scikit-credit'
ModuleNotFoundError: No module named 'scikit-credit'  Hi, My... 'scikit-credit' How to remove the ModuleNotFoundError: No module named 'scikit-credit' error? Thanks   Hi, In your python
Problem in show card in applet.
Problem in show card in applet.  The following link contained the card demo with applet. http://www.roseindia.net/java/java... but Not show card in the applet, then I add a code in paintComponent method like
validation files
validation files  If I place validation files in the folder where the action classes are present,will there any error arise
Version of com.braintreepayments>card-form dependency
List of Version of com.braintreepayments>card-form dependency
Version of com.talobin>card-entry dependency
List of Version of com.talobin>card-entry dependency
ModuleNotFoundError: No module named 'bank_card'
ModuleNotFoundError: No module named 'bank_card'  Hi, My Python... 'bank_card' How to remove the ModuleNotFoundError: No module named 'bank_card' error? Thanks   Hi, In your python environment you

Ads