Create a project with 2 Java class files. Create two new Java files and save as PasswordVerifier.java & PasswordDemo.java and add them to your project. o PasswordVerifier will contain class (of static) methods to check conditions required for a valid password o PasswordDemo.java will contain a main method with console I/O to prompt a user for a password via I/O methodSystematically, add and unit test the above/following six static methods to your PasswordVerifier class 1. Create the empty class PasswordVerifier with one static field: MINIMUM_PASSWORD_LENGTH. 2. Fix your indentation and get each method to compile before moving on to the next step . public class PasswordVerifier { // Constant for minimum password length private static int MINIMUM_PASSWORD_LENGTH = 6; } A. isMinimumLength: Add a static boolean method that returns true if the string argument passed into the method contains at least the minimum number of characters; false otherwise Unit test your method B. hasUpperCase: Add a static boolean method that returns true if the string argument passed into the method contains at least one uppercase letter; false otherwise Unit test your method LAB 3 C. hasLowerCase: Add a static boolean method that returns true if the string argument passed into the method contains at least one lower letter; false otherwise Unit test your method D. hasDigit: Add a static boolean method that returns true if the string argument passed into the method contains at least one digit; false otherwise Unit test your method E. hasLegalChars: Add a static boolean method that returns true if the string argument passed into the method contains no characters other than only letters (A..Z, a..z), digits (0..9), and the underscore character (‘_’); false otherwise Unit test your method LAB 3 F. isValid: Add a static boolean method that returns true if the string argument passed into the method has at least the minimum number of characters, has at least one uppercase, one lowercase, one digit, and has only legal characters; false otherwise Hint: Use your existing class methods, do not rewrite their logic. Unit test your method Write a main method that uses your static class methods Add a main method to your PasswordDemo class that 1. Prompts for and reads in a user password 2. Calls the isValid static method in PasswordVerifier to validate the password 3. Displays whether the password is valid or not




Why Choose Us

  • 100% non-plagiarized Papers
  • 24/7 /365 Service Available
  • Affordable Prices
  • Any Paper, Urgency, and Subject
  • Will complete your papers in 6 hours
  • On-time Delivery
  • Money-back and Privacy guarantees
  • Unlimited Amendments upon request
  • Satisfaction guarantee

How it Works

  • Click on the “Place Order” tab at the top menu or “Order Now” icon at the bottom and a new page will appear with an order form to be filled.
  • Fill in your paper’s requirements in the "PAPER DETAILS" section.
  • Fill in your paper’s academic level, deadline, and the required number of pages from the drop-down menus.
  • Click “CREATE ACCOUNT & SIGN IN” to enter your registration details and get an account with us for record-keeping and then, click on “PROCEED TO CHECKOUT” at the bottom of the page.
  • From there, the payment sections will show, follow the guided payment process and your order will be available for our writing team to work on it.