The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | Apr 2017 |
| Last Sign in: | 103 Weeks Ago, 3 Days Ago |
| Questions Answered: | 4870 |
| Tutorials Posted: | 4863 |
MBA IT, Mater in Science and Technology
Devry
Jul-1996 - Jul-2000
Professor
Devry University
Mar-2010 - Oct-2016
Write a method that checks the strength of a user inputted password. The method should take a String as a parameter and return a score for the password in the form of an integer. The method should use the.matches(<...>) method with a regular expression. In the main method call the method with user input and print to the screen the return. (See attached:)
Â
Â
Passwords can receive a plus one to their score for each of the following: 1.
2.
3.
4. 10. 5000:de length >=8 length >=12 1 lowercase letter 2 plus lowercase letters
1 uppercase letter . 2 plus uppercase letters 1 digit . 2 plus digits 1 special character -:> # ! ? @, you only have
to consider these 4 special characters for this
quesflcn. 2 plus special characters -:=- # l ? @, you only
have to consider these 4 special characters for
this question. When the score is returned from the method an appropriate message should print out to the screen giving the password strength. The ranges for the passwords are as follows: 0 < score < 4 -> Weak 4 <= score <1 6 -:> Fair 6 <= score «a: 8 -:> Good 8 <= score <: 10 -> Strong
No.l Sample Input:
Sample Output: 1 IÂ sz23@1S
Password strength: Strong
2 I 123456
Password strength: Weak
3 | fOOtBaLL
Password strength: Fair 4 |Â 6@m30ph7#r0n35!
Password strength: Good
-----------