A program is to be written to authenticate a username and password entered by the user.
Table 1 shows the only two pairs of valid credentials.
| Username | Password |
|---|---|
| Guest101 | blue99 |
| Manager202 | gold88 |
Write a C# program to authenticate a username and password.
The program should:
Access Denied if the username and password pair entered is not validAccess Granted if the username and password pair entered is validYou should use meaningful variable names and correct C# syntax in your answer.
298 exam-style questions on AQA GCSE Computer Science Programming concepts. Each one has a worked solution and a mark scheme showing where the marks go.