Computer Science 202
Introduction to Programming
Fall 2012, The College of Saint Rose
Agenda
You may do this alone or with a partner.
Your task is to create a rudimentary password quality checker. It's so rudimentary that all it does it judges the quality of the password on the length of the password string.
Your input is a candidate password string. Your output is a statement about the quality of the password. Passwords whose length is less than 5 characters is reported as "Poor", 5-8 characters as "Fair", 9-12 characters as "Good", and 13 or more as "Great".
Write a Java program in a class called PasswordChecker that solves the above problem. You are encouraged to develop a Visual Logic flowchart first, but you need not turn that in. For your Java program, you may use either terminal I/O with a Scanner and System.out.println calls or dialog boxes with JOptionPanes.
For this exercise, I will not be picky about your documentation, but your submission must include a comment at the top that has your name and that of your partner if applicable. Be sure to use meaningful names for your variables.
You can download a BlueJ project (minus the Java file) from here: PasswordChecker if you'd like to try out my solution.
Submit just the PasswordChecker.java file in Blackboard under the "Lecture Assignment Submissions" category to the "Lecture 9 In-Class Exercise" item. This will earn you 8 lecture assignment points.
Due at the start of class, Thursday, September 27.
Please submit answers to these questions in Blackboard by the start of class. We will discuss these questions at the start of class, so no late submissions are accepted.
Examples