A computer system maintains a list of valid passwords. Write a program that accepts an 18-character password and checks it against its list of valid passwords.
The program should print “ok” if the password is in the list and “Try again” if it is
not. Give the user two additional tries, replying with successively nastier messages
each time the user fails to give the correct password. Hint: Keep a list of responses
as well as a list of passwords. A sample execution might produce the following
output:
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here