Question: In C + + Format . Any assistance would be greatly appreciated. Create a program prompting a user to create a user and password: Implement

In C
+
+
Format. Any assistance would be greatly appreciated.
Create a program prompting a user to create a user and password:
Implement exception handling for the following scenarios:
Password is less than
1
2
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:
1
2
3
4
Invalid Password: Too few characters
Enter username: test
Enter password: P@$$w
0
rD
1
2
3
4
5
Invalid Password: Invalid characters
(
@ or #
)
Enter username: test
Enter password: Pa$$wordtest
1
2
3
4
Invalid Password: Cannot use username in password

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!