Subprograms

EasyMediumHard
123456789101112
Question 4
Easy

A programmer uses the following sub-program to calculate net salary:

global baseTax = 0.20

function calculateNetPay(grossPay)
    deductions = grossPay * baseTax
    netPay = grossPay - deductions
    return netPay
endfunction

State the name of one local variable used in this sub-program.

[1]

Subprograms Questions

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