Question: Using C + + Format Create a program prompting a user to create a user and password: Implement exception handling for the following scenarios: Password

Using C++ Format
Create a program prompting a user to create a user and password:
Implement exception handling for the following scenarios:
Password is less than 12 characters
Password contains a "#" or "@" symbol
Password contains their username ** Challenging
Create and use your own custom Exception class in your program
Sample Output:
Enter username: test
Enter password: 1234
Invalid Password: Too few characters
Enter username: test
Enter password: P@$$w0rD12345
Invalid Password: Invalid characters (@ or #)
Enter username: test
Enter password: Pa$$wordtest1234
Invalid Password: Cannot use username in password
Using C + + Format Create a program prompting a

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!