Question: I need help with this Java Programming assignment. I also included a sample of what the output is supposed to look like. Prompt the user

I need help with this Java Programming assignment. I also included a sample of what the output is supposed to look like.

Prompt the user to enter a "password" that meets the all criteria below. Then, use Chapter 4 methods of class String and class Character to test if the user's input is in compliance with each criterion.

the password must consist of at least 8 letters and digits.

the first character must be a lower case letter.

the 3rd character must be an upper case letter.

the 6th character must be a digit.

Sample Output (meets all criteria)

Enter an acceptable password

vsPKh98MxY

Yes, the password is of sufficient length

Yes, v is acceptable for the 1st character

Yes, 3rd character requirement is correct

Yes, 6th character g is a digit

Sample Output (misses all criteria)

Enter an acceptable password

X45e8z5

Password is not long enough

Bad input. X for 1st character is not as required

Bad input. 3rd character is not as required

Bad input, 6th character is not as required

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!