017-005-001
Class and Control: Password Strength Check
Easy
Problem Description
class and Control: Password Strength Check
In this problem, you will create a program that receives a password length and special character presence, calls multiple check methods of a PasswordChecker class in sequence to evaluate password strength, and displays the result to standard output.
Learning Objective: Control program flow by calling class methods in sequence
Create PasswordChecker class to determine strength from password length and special character presence. Learn how to progress validation step by step by calling multiple check methods in sequence.
Understanding with Concrete Examples
Example 1: Strongest Password
Input:
15
1
Output:
Password Strength:
Length: 15characters
Special: Yes
Strength: Very Strong
```java
### Example 2: Medium Strength Password
```java
Input:
10
1
Output:
Password Strength:
Length: 10characters
Special: Yes
Strength: Medium
```java
### Example 3: Long But No Special (Boundary)
```java
Input:
12
0
Output:
Password Strength:
Length: 12characters
Special: No
Strength: Strong
```java
## Input
Line 1: Password length (integer, 1-50)
Line 2: Special character presence (integer, 0=no/1=yes)
## Output
```java
Password Strength:
Length: [length]characters
Special: [presence]
Strength: [strength]
```java
Strength determination:
- 12 or more chars and special chars: Very Strong
- 12 or more chars: Strong
- 8 or more chars and special chars: Medium
- Others: Weak
Test Cases
※ Output examples follow programming industry standards
Normal case
Input:
20 1
Expected Output:
Password Strength: Length: 20characters Special: Yes Strength: Very Strong
Normal case
Input:
8 1
Expected Output:
Password Strength: Length: 8characters Special: Yes Strength: Medium
Your Solution
Current Mode:● My Code
PasswordChecker.java🔒
Solution.java🔒
2/6 ファイル135B
9
1
2
›
⌄
public class PasswordChecker {
}
0 B / 5 MB
You have 10 free executions remaining
