Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Professional Microsoft SQL Server 2014 Administration

Authors: Adam Jorgensen, Bradley Ball

1st Edition

111885926X, 9781118859261

More Books

Students also viewed these Databases questions

Question

Understand why empowerment is so important in many frontline jobs.

Answered: 1 week ago