Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Your program should prompt the user for a password and then ask them to type it for the second time. After that, the program will
Your program should prompt the user for a password and then ask them to type it for the second time. After that, the program will validate the password meets the following criteria provide a "success" message or respond with an error message if it does not meet criteria.
Initial password enter matches the retyped password exactly. If violated, error message should be exactly "Passwords do not match".
The password must be between characters exactly. If violated, error message should be "Password must be between characters in length".
The password must contain a capital Z somewhere in it If violated, error message should be "Password must contain a capital Z
The last character of the password must be the digit If violated, error message should be "Password last character must be a
If the user enters a capital Q then the program will quit. Otherwise, the user will continue to be prompted.
Your solution must have the following elements to get full credit:
A loop construct
At least one additional method besides the main method.
Wellnamed class, method and variable names watch case!
Correct formatting use CTRLShiftF key combination
The exact error messages you see in the requirements also in the sample execution video below
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started