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-Advanced. Open the Password Solution.sln file contained in the Password Solution-Advanced folder. Before inserting the number, the btnCreate_Click procedure should alternate the case of each letter in the password. If the first character is lowercase, the procedure should change it to uppercase; it should then change the second letter to lowercase, the third letter to uppercase, and so on. For example, if the password is abcd, the procedure should change it to AbCd. On the other hand, if the first character is uppercase, the procedure should change it to lowercase and then alternate the case of the following letters. For example, if the password is Abcd, the procedure should change it to aBcD. Modify the procedure’s code. Save the solution and then start and test the application. (If the user enters “May the Force be with you”, the procedure should display m6TfBwY. If the user enters “may the Force be with you”, the procedure should display M6tFbWy.)
Step by Step Answer: