Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Please I Need Help Only In C++ The Best Possible I Have B In The Class If Any He

ID: 3768962 • Letter: P

Question

Please I Need Help Only In C++ The Best Possible I Have B In The Class If Any Help Me I Can Have The A Im In The BorderLine. No Bool

Problem 1: Password Verifier Design a program that verifies a password. The users’ password should be meet the following criteria: The password should be between 8 – 12 characters long. The password should contain at least one uppercase and at least one lowercase letter. The password should have at least 2 digits. The password should contain at least two symbols (Example: $&*#...) The program will display as console output when password was accepted and in the case that was invalid it should display to the user why the password is invalid. The program will be in to a loop until password will be accepted. The valid password will be exported to a file. Use functions as part of your solution.

Explanation / Answer

import java.util.Scanner; public class YoungAmyProg5 { public static void main(String[] args) { Scanner in = new Scanner(System.in); String input; //input password System.out.println("Enter a password that follows these rules: Is between 8-12 characters Contains at least 1 lower case letter Contains at least 1 upper case letter Contains at least 2 numeric digit Contains at least 2 special character from the set: ! @#$%^&* Does NOT contain the word "and" or the word "end": ") input= in.nextLine (); //Put through string and reply if public static boolean isSecurePassword(String password) { int lengthPassword = password.length(); if (lengthPassword > 8 && 0) { word = true; }