Answered step by step
Verified Expert Solution
Question
1 Approved Answer
My program doesn't run right as it keeps saying the password is poor even though it meet the conditions to be excellent. Can you check
My program doesn't run right as it keeps saying the password is poor even though it meet the conditions to be excellent. Can you check and fix where the problem is ? Here is my program:
import java.util.*;
public class Password { public static boolean hasUpper = false; public static boolean hasLower = false; public static boolean hasDigit = false; public static boolean validPassword(String s) { if (s.length() 7 ) { return false; } if(s.length() >=5 && s.length()
Glest_cynthia.jave G:\CSC 2920 Spring 2001\Programming Assignment -GRASP CSD (Java) Elle Edit View Build Project Settings Tools Window Help abe AED 50 FOLIAMI Compile Messages GRASP Messages Run IO Interactions End ----GRASP exec: java lest_cynthia Please input your code. Clear 1234567 Help The orginal code is: 1 2 3 4 5 6 7 The password is poor Would you like to continue or try again (V/y)? Please input your code. aqwerty The orginal code is: a qwerty The password is poor Would you like to continue or try again (V/y)? Please input your code. 12 Your code does not have between 5 and 7 characters. Would you like to continue or try again (V/y)? Please input your code QA123 The orginal code is: QA123 * The password is excellent Would you like to continue or try again (V/y)? ----GRASP: operation complete. BEDEU Line:68 Col:54 Code:32 Top:57 OvselStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started