Question: I need help with this program Write a program that will Ask the user to enter a password Write a method that will check whether
Write a program that will Ask the user to enter a password Write a method that will check whether the password follows a set of rules and will return true or false depending on the check. Here are the rules that ALL have to be true for the password to be correct: 1. Check whether the password has at least 8 characters. 2. Check whether the password has at least 2 numbers. 3. Check whether the password has at least 2 upper case letters 4 Check whether the password has at least 1 symbol (non-alphabets) 5. The password should not have any space. Now from the main method, send the user provided password to that method to check whether it follows the above set of rules and provide a corresponding prompt showing whether the password is in correct form or not
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
