Question: Write a simplie c++ program that does the follwoing . Password Verifier Imagine you are developing a software package that requires users to enter their

Write a simplie c++ program that does the follwoing .

Password Verifier

Imagine you are developing a software package that requires users to enter their own passwords. Your software requires that users' passwords meet the following criteria:

The password should be at least 6 characters long.

The password should contain at least one uppercase and at least one lowercase letter.

The password should have at least 1 digit.

Write a program that asks for a password and then verifies that it meets the stated criteria. If it doesn't the program should display a message telling the user why.

Expected Output

When your solution is executed, it must match, verbatim, the following output, depending upon the use case:

User accepts auto-generated password

Enter your full name, including middle initial: Stu D. Ent Your auto-generated password is: tnEDutS10 Would you like to change your password now [Y|N]? N Thank you. It is recommended that you change your password the next time you log into our system. 

User changes password successfully

Enter your full name, including middle initial: Stu D. Ent Your auto-generated password is: tnEDutS10 Would you like to change your password now [Y|N]? Y Enter your password: Passw0rd Thank you. Please use your new password the next time you log into our system. 

User changes password unsuccessfully

Enter your full name, including middle initial: Stu D. Ent Your auto-generated password is: tnEDutS10 Would you like to change your password now [Y|N]? Y Enter your password: password We're sorry. Your password does not meet our requirements: * Your password does not contain at least one uppercase and one lowercase letter * Your password does not contain at least 1 digit Your password was not changed; it remains: tnEDutS10 As a reminder, your password should * be at least 6 characters long * contain at least one uppercase and at least one lowercase letter * contain at least 1 digit It is recommended that you change your password the next time you log into our system. 

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 Databases Questions!