Answered You can hire a professional tutor to get the answer.

QUESTION

Name your file FirstLastProg5.java Implement a program that reads in a user password and verifies it meets the following criteria:

Name your file FirstLastProg5.java

Implement a program that reads in a user password and verifies it meets the following criteria:

• Is atleast 8 characters long

• Contains atleast 1 lower letter character

• Contains atleast 1 upper letter character

• Contains atleast 1 numeric digit

• Contains atleast 1 special character from the set: !@#$%^&*

• Does not contain the word "and" or the word "the"

Prompts the user for a password, including the requirements above in your output.

Output a string that states valid or invalid. If invalid, state which rules from the list above have not been met, and prompt the user to enter another password.

Utilize the following functionality:

• indexOf

• Looping structure

• charAt()

• isDigit()

• isUpperCase()

• isLowerCase()

• and any additional functionality needed.

Sample Output:

Password Verifier

Enter a password that meets the following rules:

Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question