Question: Imagine you are developing a software package that requires users to enter their own passwords. Your software requires that users passwords meet the following criteria:
Imagine you are developing a software package that requires users to enter their own passwords. Your software requires that users passwords meet the following criteria:
The password should be at least six characters long.
The password should contain at least one uppercase and at least one lowercase letter.
The password should have at least one digit.
Write a program that asks for a password and then verifies that it meets the stated criteria. If doesnt, the program should display a message telling the user why.
It's also telling me to use this source code:
// Chapter 10, Programming Challenge 12: Password Verifier #include
{ bool status = false; // The status flag, set to false // Return the status. return status; } //************************************************* // The hasDigit function returns true if the * // string contains at least one digit * // character. Otherwise, it returns false. * //************************************************* bool hasDigit(char str[]) { bool status = false; // The status flag, set to false // Return the status. return status; }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
