An algorithm allows a user to input their password and checks that there are at least eight characters in the password. Then, the user is asked to re-input the password to check that both inputs are the same. The user is allowed three attempts at inputting a password of the correct length and a matching pair of passwords.
The pre-defined function LEN(X) returns the number of characters in the string, X
Identify the three errors in the pseudocode and suggest a correction to remove each error.