An algorithm is shown below:
taxRate = 0.20
function calculatePrice(itemPrice)
vat = itemPrice * taxRate
finalPrice = itemPrice + vat
return finalPrice
endfunction
Identify 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.