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 //in order to use some library functions

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

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!