Question: Instructions: Create a C++ console application to ask the user to create a strong password. Tell the user the following requirements for the password: No

Instructions:

Create a C++ console application to ask the user to create a strong password. Tell the user the following requirements for the password:

  • No spaces
  • At least six characters
  • At least one uppercase letter
  • At least one lowercase letter
  • At least one number
  • At least one special character (punctuation)

Prompt the user for a new password. Test the password validity based on the above criteria. If it is not valid, display an error message and keep repeating the process until the password is valid. Then, ask them to re-enter it. If passwords are not the same, prompt the user with an adequate message and ask them to confirm the first password again (Do not create a new one). If the passwords are the same, thank the user and tell them the password has been saved.

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!