allenge: 12 - Password Verifier Use the string data type. Do not use arrays of type char or any functions in the old "C String" libraries. Six characters? Seriously? Set the minimum password length to twelve characters. We will also require that the password not contain any space characters. In addition to the requirement that the password contain at least one upper case letter, one lower case letter, and one digit, add the additional requirement that the password contain at least one "special" character. We will consider any character that is
Homework 10-2
Programming Challenge: 12 - Password Verifier
Use the string data type. Do not use arrays of type char or any functions in the old "C String" libraries.
Six characters? Seriously? Set the minimum password length to twelve characters.
We will also require that the password not contain any space characters.
In addition to the requirement that the password contain at least one upper case letter, one lower case letter, and one digit, add the additional requirement that the password contain at least one "special" character. We will consider any character that is printable, not alphanumeric, and not a space character to be "special." That includes punctuation, but may include additional non-punctuation characters. Unfortunately at our level of C++ it's more or less impossible for us to actually test passwords like Señor_99 but the ñ (with a tilde) would count as a special character using our rules.
Write functions to complete these tasks as appropriate.
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 3 images