Question: java 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

java

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.

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

TIP: You will have two Java progras, onme is definition, PasswordVerifier.java for instance, another one is demo, PasswordDemo.javafor instance. In your PasswordVerifier.java program you will have to define methods, for example, hasUpperCase(), hasLowerCase(), hasDigit(), and isLongerThenSix() to verify the above mentioned criteria. In your PasswordDemo.java program, you will ask the user to input a password, then call each method defined in PasswordVerifier.java to check if the customer entered password is valid.

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!