Skip to content
MathsGenie logo
Open app

Course home

  1. IGCSE
  2. Computer Science Edexcel
  3. Question bank

Subprograms

EasyMedium
123456789101112131415161718192021222324252627282930
Question 27

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.

[1]

Subprograms Questions

  1. IGCSE
  2. /Computer Science
  3. /Subprograms