Skip to content

Course home

Representing algorithms

Representing algorithms

EasyMediumHard
123456789
Question 9

An automated water treatment facility's emergency valve console allows manual override access to only two chief operators. Their secure credentials are shown in Table 1 below:

Table 1
Operator IDAuthorization Code
foster992-Alpha
kovacs104-Delta

Develop an algorithm, using either pseudo-code or a flowchart, to authenticate logging into the console to perform a manual override.

The algorithm must:

  • Prompt the user to enter their operator ID and authorization code.
  • Check if the operator ID and authorization code combination is correct.
  • If correct, output 'valve open'.
  • If incorrect, continually prompt the user to re-enter both their operator ID and authorization code until a valid combination is entered.
[6]
Markscheme

Representing algorithms Questions

  1. GCSE
  2. /Computer Science
  3. /Representing algorithms

208 exam-style questions on AQA GCSE Computer Science Representing algorithms. Each one has a worked solution and a mark scheme showing where the marks go.

Question bank