FOR col 1 TO Seats IF Evening [row, col] = True THEN SeatCounter SeatCounter + 1 ENDIF NEXT col NEXT row
ContinueBooking “Y”
WHILE ContinueBooking = “Y”
INPUT “Enter the number of seats required – max of 4” SeatsBooked WHILE SeatsBooked < 1 OR SEATSBOOKED > 4 DO OUTPUT “Error Message – max seats can only be 4” INPUT SeatsBooked ENDWHILE IF SeatCounter >= MaxSeats THEN OUTPUT “House Full – no seats available” ELSE IF SeatCount + SeatsBooked > MaxSeats THEN OUTPUT “There are only” (MaxSeats + SeatsBooked) – MaxSeats “seats available” ELSE FOR counter 1 TO SeatsBooked Evening[(SeatCounter + counter) DIV Seats), (SeatCounter + counter) MOD Seats)] TRUE OUTPUT “Seat booked = Row”, [(SeatCounter + counter) DIV Seats),”Seat Number =”, ), (SeatCounter + counter) MOD Seats) NEXT counter ENDIF ENDIF INPUT “Do you want to continue booking, enter Y or N” ContinueBooking ENDWHILE