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.
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.