A program is to be written to authenticate a username and password entered by the user. Figure 9 shows the only two pairs of valid usernames and passwords.
| Username | Password |
|---|---|
| Yusuf5 | 33kk |
| Mary80 | af5r |
Write a C# program to authenticate a username and password. Get the user to enter both values; display Access denied if the pair is invalid; display Access granted if the pair is valid; and repeat until a valid pair is entered. Use meaningful variable name(s) and C# syntax.
Your answer