A programmer is writing a system to manage sales calculations. Study the following algorithm:
tax_rate = 0.20
def calculate_tax(subtotal):
tax_amount = subtotal * tax_rate
return tax_amount
Identify the name of a local variable used in this code.
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.