Compare the password to a list of valid passwords


Discuss the below:

With an applet program that asks the user to enter a password into a textField and then press the Enter key. Compare the password to "Phoenix"; if they match, display "Access granted"; if they do not match display "Access denied".

The program must ignore differences in case between the typed password and "Phoenix". (case sensitive = ignore)

Then I must modify part two of the program to compare the password to a list of 5 valid passwords. "Kentucky", "Florida", "Indiana", "New York", "Maryland".

Please provide the java script

Solution Preview :

Prepared by a verified Expert
Basic Computer Science: Compare the password to a list of valid passwords
Reference No:- TGS01932693

Now Priced at $20 (50% Discount)

Recommended (91%)

Rated (4.3/5)