Question: PLEASE PROVIDE A CODE IN JAVA Problem Description: Imagine you are developing a software package for Amazon.com that requires users to enter their own passwords.

PLEASE PROVIDE A CODE IN JAVA

Problem Description:

Imagine you are developing a software package for Amazon.com that requires users to enter their own passwords. Your software requires that users passwords meet the following criteria:

The password should be at least six characters long.

The password should contain at least one uppercase and at least one lowercase letter.

The password should have at least one digit.

The password should have at least one of these special characters: @, $, %, &.

Write a class that verifies that a password meets the stated criteria. Demonstrate the class in a program that allows the user to enter a password and then displays a message indicating whether it is valid or not.

If the password is not valid, tell the user what part of the password is not valid i.e. password must be at least 6 char long or password must contain a lowercase letter or password must contain an uppercase letter or password must have at least one digit or password must have a special character.

Keep looping until the correct password is entered.

Use Java GUI or console for user input and to display the result.

Other Requirements:

1. Add Comments in your program.

2. The program should have proper formatting.

!============================

To Test

12345

12345A

12345a

ABc1cde&

Comments

1233

Feedback

The program does not display which specific requirement is not met (-1).

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!