Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create a PasswordTest class. The class should have a method which checks the password for the following requirements. public String checkPassword( String psswd) The password

Create a PasswordTest class.

The class should have a method which checks the password for the following requirements.

public String checkPassword( String psswd)

The password uses the following criteria:

The password should be at least 6 characters strong.

The password should contain at least one upper case letter.

The password should contain at least TWO lower case letters

The password should have at least one digit.

The algorithm should ask for a password and then verifies that it meets the stated criteria. If it does it should return message Password Accepted. If not it should return a message as to what is wrong with the password and why it is not accepted.

The main method should read in the given input file passwdin.txt. This input file has passwords. Your PasswordTest main method should read each password and call the above method with each string as the argument and write the password string and the return argument into an output file passwdout.txt.

So for example if the first password being read from the input file is Myname, then in the output file it should say as the first line

MyName Password should have at least one digit

Program must run correctly. Please help

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

Step: 3

blur-text-image

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

Databases Demystified

Authors: Andrew Oppel

1st Edition

0072253649, 9780072253641

More Books

Students also viewed these Databases questions

Question

Find the value of x. Round to the nearest WHOLE NUMBER. X 4 6 y

Answered: 1 week ago