Question: Write a program named PasswordChecker. It receives a password from the console and checks if the password is strong enough to use. The program will

Write a program named PasswordChecker. It receives a password from the console and checks if the password is strong enough to use. The program will display a message if the password passed all criteria below. If the password failed to pass any of them, the program will display another message with passed and failed results.

Create a method to check the number of characters. It must be more than 8.

Create a method to check the password to have at least one uppercase letter.

Create a method to check the password to have at least one lowercase letter.

Create a method to check the password to have at least one digit.

Create a method to check the password to have at least one special character (!,@,#,%,&,*)

You are not allowed to use some pre-defined Java functions from the Character class to check if a string has a special character or not.

For example, you CANNOT use Character.isDigit() or Character. isLetter() or Character. isLowerCase() or Character.isUpperCase() ,etc.

Each requirement MUST have its own function assigned to it. For example, you cannot have one method in charge of checking uppercase and lowercase letters, they must be separate.

Make sure to receive the password to be check from the scanner and print the results of that password in the main method.

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!