Assignment: #PasswordChecker Due: 04/09/2017 04/16/2017 Points: 5

Specification

This program checks the strengh of a user entered password.

Define a variable named score and set it to zero.

Add 1 to score if password length is between six and eight, inclusive. Add 2 to score if password length is greater than eight.

Add 1 to score if password contains at least one uppercase character, but only if it is not the first character of the password.

Add 1 to score if password contains at least one lowercase character.

Add 1 to score if password contains at least one digit character.

Add 1 to score if password contains at least one punctuation character. Add another 1 to score if at least two punctuation characters are used that are numerically contained in different intervals of the Unicode character set. {ASCII Chart}

Subtract 5 from score if the password is any of the following "most-used" passwords or their reverse. {ZDnet.com::25 most-used passwords revealed} Note: Case should be ignored when comparing user entered password with the "most-used" passwords (or their reverse).

     password    123456      12345678    qwerty
     baseball    football    letmein     111111      
     superman    master      harley

If not a "most-used" password (or their reverse), then subtract 4 from score if the password contains a "most-used" password (or their reverse).

Print the value of the score variable prior to exiting the program.

Important Rules and Regulations

Input to the program must be read directly from the standard input stream using the System.in object.

A char[] must be used to store the input.

Character constants must be used instead of their Unicode numeric equivalent (e.g. 'A' instead of 65).

And the following...

   no Java class Scanner objects
   no Java class String methods except charAt(), equals() & equalsIngoreCase()
   no Java class Character methods/objects
   no Java class StringBuffer methods/objects
   no Java class Vector methods/objects
   no Java class ArrayList methods/objects
   no Java class StringBuilder methods/objects
   no Java supported regular expressions
About the main() Method

Your main() method should contain code that is executed to test your password scoring.