java project

java project

Write a method which validates a password. Then write a program that prompts the user to enter a password (and verify it). Your program will call your method to validate the password.

Your method must check that the password strings match and contain at least 8 characters. Furthermore, the password must contain at least 1 special character (!,@,#,$,%,^,&,*,_,-), 1 number, 1 lower case, and 1 upper case letter.

Your validation method should print out a message for every violation that the password has. Here are a few example outputs:

Please enter a password: TacoTuesday7

Please enter the password again: TecoTuesday7

Passwords do not match!

Password not verified!

Please enter a password: tacotuesday

Please enter the password again: tacotuesday

Password does not contain a digit.

Password does not contain an upper case character.

Password does not contain a special character.

Password not verified!

Please enter a password: TacoTuesday7

Please enter the password again: TacoTuesday7

Password does not contain a special character.

Password not verified!

Please enter a password: taco

Please enter the password again: taco

Password must be at least 8 characters.

Password not verified!

Please enter a password: TacoTuesday7!

Please enter the password again: TacoTuesday7!

Password verified!

"You need a similar assignment done from scratch? Our qualified writers will help you with a guaranteed AI-free & plagiarism-free A+ quality paper, Confidentiality, Timely delivery & Livechat/phone Support.


Discount Code: CIPD30



Click ORDER NOW..

order custom paper