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

Java Program Write a program that has method that checks whether a string is an

ID: 641459 • Letter: J

Question

Java Program

Write a program that has method that checks whether a string is an acceptable password. Your main method will ask the user if he/she wants detailed information on the failure or not in the event a password is rejected; it must do this only once. Your main method will then request that the user enter a password to check and then it will invoke your method with two inputs, the string the user entered, and a "detailed information wanted flag." Your method will return a true if the password is acceptable and a false if the password is not acceptable. The main program must then display a message stating that the password is either acceptable or unacceptable.  In either case, the program will ask the user if he wants to check another password and will continue to do so until the user says no or ("N" or "n", that is up to you). To be an acceptable password, the following rules must be obeyed:

* The password must have at least 8 characters.

* The password must not have more than 24 characters.

* The password must consist of only letters, digits, and any of the special characters !@#$%^&*()?

* The password must have at least two upper case letters

* The password must have at least two lower case letters

* The password must have at least two digits

* The password must have at least one of the special characters

If the "detailed information wanted flag" is true, your method will display information stating which of the above criteria failed. If the flag is false, it will not display any information.

Explanation / Answer

Hey i can help you with this. Contact me on hunain60 at gmail

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