In this exercise, you modify the Password application from this chapters Apply lesson. Use Windows to make
Question:
In this exercise, you modify the Password application from this chapter’s Apply lesson. Use Windows to make a copy of the Password Solution folder. Rename the copy Password Solution-Index. Open the Password Solution.sln file contained in the Password Solution-Index folder. In the btnCreate_Click procedure, declare a constant named strALPHABET and initialize it to the 26 uppercase letters of the alphabet. Then, rather than inserting the length of the password, the procedure should insert a number that represents the position of the password’s first character in the alphabet. For example, if the first character in the password is the letter A, the procedure should insert the number 1. Similarly, if the first character is the letter Z, the procedure should insert the number 26. Insert the number after the last character in the password (rather than after the first character). Save the solution and then start and test the application. (If the user enters “show me the money”, the Create password button should display smtm19.)
Step by Step Answer: