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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started