Question
C++ (Password verification) Ask a user to enter his/her passwords. Your program requires that users passwords meet the following criteria: -The password should be at
C++ (Password verification)
Ask a user to enter his/her passwords. Your program requires that users passwords meet the following criteria:
-The password should be at least 8 characters and at most 24 characters long.
-The password should contain at least one uppercase and at least one lowercase letter.
-The password should have at least one digit.
-The password should contains at least one special symbol from the set {@,#,*,%}.
If a password does not meet the criteria, your program should display a message telling the user why.
If a password does meet the criteria, your program should display a message telling the user the password is valid.
******************************************************************************
Hints: You may use the following string functions:
#include
s.length() // returns the length of string s
isdigit(s[k]) // returns true if the character s[k] is a digit,
// returns false otherwise
isupper(s[k]) // returns true if the character s[k] is an
// uppercase letter, returns false otherwise
islower(s[k]) // returns true if the character s[k] is a
// lowercase letter, returns false otherwise
Show Your Output!!
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