A local cinema calculates ticket pricing for private group screenings. The program below calculates the total charge in pounds (£) based on the number of attendees.
1 totalCost = 0
2 print("Enter group organizer name:")
3 organizerName = input()
4 while len(organizerName) > 25:
5 print("Name too long")
6 organizerName = input()
7 print("Enter number of attendees:")
8 attendees = int(input())
9 if attendees < 15:
10 totalCost = 120
11 else:
12 totalCost = attendees * 8
13 print(totalCost)
The pricing structure for groups of 15 or more attendees is changed to include an additional flat cleaning fee of £35.
Rewrite line 12 to show this change.
Your answer must be written in Python.
Practise AQA GCSE Computer Science Arithmetic operations in a programming language with exam-style questions for GCSE Computer Science. 7 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.