A programmer is developing an algorithm to calculate booking costs.
booking_fee = 2.50
def calculate_total(ticket_price, quantity):
subtotal = ticket_price * quantity
package_total = subtotal + booking_fee
return package_total
Give the name of a global variable used in this algorithm.
33 exam-style questions on Edexcel IGCSE Computer Science Subprograms. Each one has a worked solution and a mark scheme showing where the marks go.