A programmer is writing a system for a courier company and creates the following subprogram:
function calculateFee(parcelWeight, distanceMiles)
basePrice = parcelWeight * 1.50
if distanceMiles > 50 then
totalFee = basePrice + 10.00
else
totalFee = basePrice
endif
return totalFee
endfunction
Give the name of one parameter used in the calculateFee subprogram.
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.