Question: C++ program Websites impose certain rules for passwords. suppose the password rules are as follows: -a password must have at least 10 characters -a password
C++ program Websites impose certain rules for passwords. suppose the password rules are as follows:
-a password must have at least 10 characters
-a password must contain at least one upper case letter
-a password must contain at least one digit
-a password must contain at least one special character =!@#$%^&*()
Write a program that prompts the user to enter a password and displays "Valid password" if the rules are followed or "Invalid password" otherwise.
You must use a function when writing this assignment. You must provide at least three sample runs
bool passwordIsValid(string pw)
Sample run:
$ ./checkPassWord.out
Enter a password : abcde12345D
Invalid Password!
$ ./checkPassWord.out
Enter a password : abcde12345A#
Valid Password!
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
