Write the program to allow the user to enter a potential password in the main program, then passes this value (in an array) into a function that will verify that it meets the stated criteria. For each criteria that it does not meet, a message MUST be displayed. For example, if the user enters "qry2" then three messages should display, first that it is not five characters long, second that it does not contain an uppercase letter and third that it does not contain one of the special ten cahracters. It does contain a digit, so that error message would not display.
Answer must be in C++
-
You have been hired by a coffee shop to write a
program to validate employee's login passwords. You must ensure that the password meets certain criteria, as follows:- The password must be at least five (5) characters long
- The password must contain at least one uppercase and at least one lowercase letter
- The password must contain at least one digit
- The password must contain at least one of the following ten characters: ? # % & ! @ { } ^ \
Write the program to allow the user to enter a potential password in the main program, then passes this value (in an array) into a function that will verify that it meets the stated criteria. For each criteria that it does not meet, a message MUST be displayed. For example, if the user enters "qry2" then three messages should display, first that it is not five characters long, second that it does not contain an uppercase letter and third that it does not contain one of the special ten cahracters. It does contain a digit, so that error message would not display.

Step by step
Solved in 3 steps with 3 images









