Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Complete the fifth programming challenge, PasswordVerifier. The UML diagram of the class is shown below. PasswordVerifier - MIN _ PASSWORD _ LENGTH : int =

Complete the fifth programming challenge, PasswordVerifier. The UML diagram of the class is shown
below.
PasswordVerifier
- MIN_PASSWORD_LENGTH : int =8
+ isValid (str : String) : boolean
- hasUpperCase(str : String) : boolean
- hasLowerCase(srr : String) : boolean
- hasDigit(str : String) : boolean
Write a class, PasswordVerifier, per the UML diagram above, and create a second class,
PasswordDemo, with a main routine to demonstrate the use of the PasswordVerifier class.
The method isValid should be static. This method should return true if a password has more than
7 characters, contains upper case, lower case and a digit.
CS111, CWU, Homework 2, Tatiana Harrison
page 5 of 6
Do NOT instantiate an object of type PasswordVerifier.
You can have your program interact with the user via the command-line input, or by using dialogue
boxes. The below two images show a (successful) invocation of the program PasswordDemo.
Refer to the rubric posted in Canvas for details about point accrual. A sample invocation of the program
is shown above.

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

Demystifying Databases A Hands On Guide For Database Management

Authors: Shiva Sukula

1st Edition

8170005345, 978-8170005346

More Books

Students also viewed these Databases questions

Question

The amount of work I am asked to do is reasonable.

Answered: 1 week ago

Question

The company encourages a balance between work and personal life.

Answered: 1 week ago