Assignment: #PasswordChecker Due: 03/31/02019 Points: 4

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 six or greater.

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

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.

Subtract 5 from score if the password is any of the following "most-used" passwords or their reverse.

     password    123456      12345678    qwerty
     baseball    football    letmein     111111      
     superman    master      harley

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

Help Using String Objects

Docs.Oracle.com::Class String

Help Reading the Standard Input Stream

Put the following statement at the top of your dot-java file.

   import java.util.Scanner;

The following code goes in your main method.

    Scanner scanner = new Scanner(System.in);
    System.out.print("Enter a password: ");
    String password = scanner.next();

[update::2014.01.20] NewsFeed.Time.com::The 25 Worst Passwords of 2013
[update::2014.01.24] NakedSecurity.Sophos.com::Are our passwords really that bad? And does it really matter?
[update::2016.01.20] NakedSecurity.com::These are the 25 worst passwords of 2015
[update::2018.01.07] SecurityMagazine.com::The Worst Passwords of 2017 Revealed
[update::2018.12.13] DigitalTrends.com::These are the worst passwords of 2018