How JustAnswer Works:

  • Ask an Expert
    Experts are full of valuable knowledge and are ready to help with any question. Credentials confirmed by a Fortune 500 verification firm.
  • Get a Professional Answer
    Via email, text message, or notification as you wait on our site.
    Ask follow up questions if you need to.
  • 100% Satisfaction Guarantee
    Rate the answer you receive.

Ask LogicPro Your Own Question

LogicPro
LogicPro, Engineer
Category: Homework
Satisfied Customers: 12496
Experience:  Expert in Java C++ C C# VB Javascript Design SQL HTML
29751445
Type Your Homework Question Here...
LogicPro is online now
A new question is answered every 9 seconds

Design a class named Password2 as specified in the following

This answer was rated:

Design a class named Password2 as specified in the following UML diagram:
________________________________________________________
-rule1: boolean
-rule2: boolean
-rule3: boolean
-ps: String A password XXXXX have at least seven characters
A password XXXXX of only letters and digits
A password XXXXX contain at least three digits
Password XXXXX
+Password2 (ps: String)

+verifyPassword2():void

-verifyLength():boolean

-verifyValidCharacters():boolean

-verifyNumberOfDigits(): boolean

+printReport():void Constructs with password XXXXX

Invokes other supporting methods

Returns true/false based on length of password

Returns true/false based on valid/invalid characters

Returns true/false based on number of digits

Prints summary report as specified below

It should look like this below

+++++++++++++++++++ Password XXXXX ++++++++++++++++

Proffesor
Class Cours
6/10/2013

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++


Enter a password (or enter exit when done): Smith1234

Password XXXXX: Smith1234
Congratulations! The password XXXXX entered is valid

Enter a password (or enter exit when done): Mo123

Password XXXXX: Mo123
Sorry the password XXXXX XXXXX valid for the following reason(s)

1 violates rule1: the password XXXXX not have at least eight characters


Enter a password (or enter exit when done): Smith#1
Password XXXXX: Smith#1
Sorry the password XXXXX XXXXX valid for the following reason(s)
1 Violates rule2: the password XXXXX not consist of only letters and digits
2 Violates rule3: the password XXXXX not contain at least two digits

Enter a password (or enter exit when done): Smith#################
Password XXXXX: Smith#################
Sorry the password XXXXX XXXXX valid for the following reason(s)

1 Violates rule2: the password XXXXX not consist of only letters and digits
2 Violates rule3: the password XXXXX not contain at least two digits

Enter a password (or enter exit when done): exit
Ï
Implement the class.
II. Write a test program named TestPassword2.java that prompts the user to enter passwords until the user enters “exit”. This driver creates an object of the Password XXXXX and uses its services as specified in the above UML diagram. The driver should have two static methods: main and printHeader. The printHeader method will be invoked from the main method of the driver.
Hi,
Welcome to JustAnswer.
My name is XXXXX XXXXX I will help you.

If you have any file(s), Zip all files, upload the zipped file to http://wikisend.com and post download link here.
What is the deadline?
Customer: replied 3 years ago.

the deadline is on Wednesday june 12 by 10 pm


only file i have is the info i posted for you above but here it is


 


http://wikisend.com/download/247898/CS1302 ProgrammingAssignment2_6_10_2013.docx


 

ok, I will provide you answer ASAP.
Customer: replied 3 years ago.

ok thanks

Welcome.
Customer: replied 3 years ago.

hey quick question i need to go to sleep but do i need to stay online for this or can i comeback later on and look at the answer or do u know how long it might take you?

I will provide you answer in next 2-3 hours. Bookmark this page to come later on.
THIS ANSWER IS LOCKED!

You need to spend $3 to view this post. Add Funds to your account and buy credits.
LogicPro and other Homework Specialists are ready to help you