Question: Create an application that uses the steps shown in Figure 10-38 to verify a credit card number that contains 12 digits. The interface should provide
Create an application that uses the steps shown in Figure 10-38 to verify a credit card number that contains 12 digits. The interface should provide a text box for the user to enter the 12-digit number. The application should display either the Valid number message or the Invalid number message. Use the following names for the solution and project, respectively: Credit Solution and Credit Project. Save the application in the VbReloaded2015\Chap10 folder. Change the form files name to Main Form.vb. (1, 6, 7)
Credit Card Verifier Create an application that uses the steps shown in Figure 10-38 to verify a credit card number that contains 12 digits. The interface should provide a text box for the user to enter the 12-digit number. The application should display either the Valid number" message or the "Invalid number" message. Use the following names for the solution and project, respectively: Credit Solution and Credit Project. Save the application in the VbReloaded20151Chap10 folder. Change the form file's name to Main Form.vb. (1, 6,7) 1. Beginning with the first digit in the credit card number, multiply every other digit by 2. 2. If the product of a multiplication contains two digits, add both digits together 3. Add all of the digits together. If the sum of the digits is evenly divisible by 10, the credit card number is valid; otherwise, it is not valid. the sum is not evenly divisible by I0 Invalid credit card number example: Number3078 6 7 4 281 2 1 tep 6 Step 2 Step 3 60583 7 8 2 71 41 52 14 12 16 Figure 10-38 Information for the Credit Card Verifer application (continues) (continued) Valid credit card number example: Number7 13 2 4 6 305 38 Step 1 14 Step 25 Step 3 51 6 2 7 4 3 3 0 6850 16 12 the surn is evenly divisible by 10 Figure 10-38 Information for the Credit Card Verifier application
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
