PIN Verifier - Visual Basic
The National Commerce Bank has hired you to create an application that verifies a customer personal identification number (PIN). A valid PIN is a seven-digit number that meets the following specifications:
Digit 1: Must be in the range of 7 through 9
Digit 2: Must be in the range of 5 through 7
Digit 3: Must be in the range of 0 through 4
Digit 4: Must be in the range of 0 through 9
Digit 5: Must be in the range of 6 through 9
Digit 6: Must be in the range of 3 through 6
Digit 7: Must be in the range of 4 through 8
Notice that each digit must fall into a range of integers. Your application should have two arrays: intMinimum and intMaximum. The intMinimum array should hold the minimum value for each digit position, and the intMaximum array should hold the maximum value for each digit position.
The application should allow the user to enter a seven-digit number on a form. You shall read a seven-digit number rather than seven single-digit numbers.
When the Verify button is clicked, the application should verify that
you check the length of input. You check whether they are digits.
For sever-digit number, you check whether it violate the PIN rules.
You shall point out all digits that violate the rules. Below are examples.
1. Assume that an user enters 8658677. You don't just point out the first digit that violate the PIN. You shall point out that digit 3 and digit 6 violate the rules. You also provide rules for digit 3 and digit 6.
2. Assume that an user enters 1155111. You shall point out that digit 1, 2, 3, 5, 6, and 7 violate the rules. You should also provide rules for those digits.
You also need a Clear button to clear the number and an Exit button to end the program.