Question: Java: For this program you only need to complete what is asked of you in the book. You simply have to check the password the
Java: For this program you only need to complete what is asked of you in the book. You simply have to check the password the user entered to see if it meets the requirements, and then display a message informing the user of their success or failure.
If you want the extra challenge, you can tell the user what they were missing in the password they entered, and also keeping asking them to reenter it until they are successful. I posted example output below for either option. The output in the blue font is for the program with the extra challenge. I cannot give you extra credit for completing the optional requirements; it is for those who want the challenge
Output for required program
What is your name?James Bond
Hello James Bond. This is top secret data and you need to create a password to keep it safe...
Your password must meet the following characteristics to be created.
At least six characters long
At least one uppercase and one lower case digit
At least one digit
Enter password:
I love Java
Password not accepted:
You need at least one digit
Enter password:
mi
Password not accepted:
You need at least one uppercase letter
Enter password:
Mi
Thank you! Your password has been created and logged....Keep it secret!!!
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
