Program statement: You are required to write both an algorithm and a C++ program that implements a password validation. Your program mainly should contain two stages; the first one is the creation of...

Program statement: You are required to write both an algorithm and a C++ program that implements a password validation. Your program mainly should contain two stages; the first one is the creation of a new password, while creating the new password your program should checks strength of the password using the following rules: 1. Password length should be 6 characters. 2. Password should not contain any space. 3. Password should contain at least one digit (0-9). 4. Password should contain at least one lowercase letter (a-z). 5. Password should contain at least one uppercase letter (A-Z). 6. Password should contain at least one of the special character (#, %, &,!, $). After applying the above rules and the password is correctly inserted, your program should prompt the user to confirm the password by retyping it again, otherwise the default password that initially defined should be considered. The second stage of the program is the user login to check authorization, in this part only three trials should be granted to the user to guess the predefined password and insert it correctly, otherwise a proper message should be displayed on the screen preventing the user from another inputs. Program layout: Write a menu driven C++ program that displays the following menu to the user: 1. Admin mode: Setup your password 2. User mode: try guessing the password 3. Exit. Please enter your choice Number: The program then accepts an input choice from the user. The program acts based on the input choice as follows: Choices 1 and 2: The program should execute the above described programs respectively. Choice 3: The program should terminate. The menu should appear continuously (as infinite loop) to the user until choosing the choice. warning: the library you able to use is only iostream the function is: int main() and you can use any of : if, else if, switch, for
Jun 07, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions ยป

Submit New Assignment

Copy and Paste Your Assignment Here