Question: Write a C++ program to validate a users password. A user should be able to enter his/her preferred password via keyboard input. Your program checks
Write a C++ program to validate a users password. A user should be able to enter his/her preferred password via keyboard input. Your program checks for specific criteria given below and returns Valid Password or Invalid Password. If the users preferred password is invalid, it also outputs different reasons.

Part II Write a C++ program to validate a user's password. A user should be able to enter his/her preferred password via keyboard input. Your program checks for specific criteria given below and returns Valid Password or Invalid Password. If the user's preferred password is invalid, it also outputs different reasons Write separate functions to check the following criteria of the preferred password (each function returns true if it meets a certain criteria): .It is at least eight characters long .It contains at least one uppercase letter and one lower case letter It contains at least one digit It contains at least one of these four characters. @ # $ . Sample output # 1: Please enter your preferred password: UoM@orono2018 Valid Program ended with exit code: ? Sample output #2: Please enter your preferred password: UoM2018 Invalid Reason1: your password should contain at least eight characters. Reason2: your password should contain at least one of the four special characters "! @ # $" Program ended with exit code: 0
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
