Figure 5 shows an algorithm represented using pseudo-code - AQA - GCSE Computer Science - Question 6 - 2023 - Paper 1
Question 6
Figure 5 shows an algorithm represented using pseudo-code.
The algorithm is for a simple authentication routine.
The pseudo-code uses a subroutine getPassword to c... show full transcript
Worked Solution & Example Answer:Figure 5 shows an algorithm represented using pseudo-code - AQA - GCSE Computer Science - Question 6 - 2023 - Paper 1
Step 1
USERINPUT
96%
114 rated
Only available for registered users.
Sign up now to view full answer, or log in if you already have an account!
Answer
This represents obtaining the username from the user via input.
Step 2
username
99%
104 rated
Only available for registered users.
Sign up now to view full answer, or log in if you already have an account!
Answer
This variable is to store the entered username.
Step 3
''
96%
101 rated
Only available for registered users.
Sign up now to view full answer, or log in if you already have an account!
Answer
An empty string is initialized, indicating that no password is provided at this stage.
Step 4
User not found
98%
120 rated
Only available for registered users.
Sign up now to view full answer, or log in if you already have an account!
Answer
This output occurs if the entered username does not have an associated password.