Question 10

AQA Computer Science June 2020 Paper 1GCSE6 marks

On the specification

3.1 Fundamentals of algorithms3.2 Programming
Question text

10 An application allows only two users to log in. Their usernames are stated in Table 1 along with their passwords. Table 1 username password gower 9Fdg3 tuff 888rG Develop an algorithm, using either pseudo-code or a flowchart, that authenticates the user. The algorithm should: • get the user to enter their username and password • check that the combination of username and password is correct and, if so, output the string 'access granted' • get the user to keep re-entering their username and password until the combination is correct. [6 marks]