Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Implement a program that reads in a user password and verifies it meets the foll

ID: 3639232 • Letter: I

Question

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

Is at least 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 “end”

Output a string that prompts the user for a password and include the requirements above in your output.

Output a string that states valid or invalid. If invalid, state which rule above has not been met.

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:
<list rules from above>
Password1

Invalid
Missing a special character

-----------------------------------------------------------------

Password Verifier

Enter a password that meets the following rules:
<list rules from above>
Panda123$

Invalid
Contains the string “and”

-----------------------------------------------------------------

Password Verifier

Enter a password that meets the following rules:
<list rules from above>
Hi

Invalid
Must be at least 8 characters long
Must contain a numeric digit
Must contain a special character

-----------------------------------------------------------------

Password Verifier

Enter a password that meets the following rules:
<list rules from above>
Pa$$word1

Valid

Explanation / Answer

This is pretty much everything. All you have to do is tell the user why it's not working(Bunch of if statements). import java.util.Scanner; public class Test { public static void main(String args[]) { Scanner input = new Scanner(System.in); System.out.print("Please enter your password: "); String pw = input.nextLine(); boolean boolean boolean boolean boolean noAndEnd = false; for(int i=0; i
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote