Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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: 0Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started