Write a complex script that simulates a basic login system. The script should:→ Take a username and password as input.→ Use arrays to store valid usernames and their corresponding passwords.→ Use a `case` statement to check if the username exists.→ If the username exists, use an `if` statement to check if the password matches.→ Print a success message if both username and password are correct, otherwise print an error message.
It looks like you're new here. If you want to get involved, click one of these buttons!