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.
7 exam-style questions on AQA GCSE Computer Science Arithmetic operations in a programming language. Each one has a worked solution and a mark scheme showing where the marks go.