The algorithm in Figure 1 contains a logic error on line 8.
Figure 1
1 validBooking ← False
2 REPEAT
3 OUTPUT 'Enter number of tickets to book (maximum of 8):'
4 numTickets ← USERINPUT
5 IF numTickets < 1 THEN
6 OUTPUT 'You must book at least 1 ticket'
7 ELSE
8 IF numTickets < 8 THEN
9 OUTPUT 'You cannot book more than 8 tickets'
10 ELSE
11 validBooking ← True
12 ENDIF
13 ENDIF
14 UNTIL validBooking = True
Describe how the error on line 8 can be corrected.
Practise AQA GCSE Computer Science Programming concepts with exam-style questions for GCSE Computer Science. 100 questions, matched to the AQA GCSE Computer Science (8525) specification and written in Paper 1 and Paper 2 style. Every question includes a full worked solution and mark scheme, so you can see where marks are awarded rather than just whether you got the answer right.