Practice
Flowchart to Pseudocode: Password Attempts
HARDFlowcharts
The flowchart below gives a user up to three attempts to enter the password Secret1.
Write the pseudocode for this flowchart. The loop's decision comes after the loop body.
Sample Test Cases
Test 1: First try
Inputs: Secret1
Expected: Access granted
Test 2: Second try
Inputs: abc, Secret1
Expected: Access granted
Test 3: Three wrong
Inputs: a, b, c
Expected: Locked out