Write the pseudocode for a module named netPay. The module will accept 3 parameters by value. The parameters are all real numbers representing hourly pay rate, number of hours worked, and witholding percentage. The module will calculate gross pay by multiplying the hourly pay rate by the number of hours worked. It will then calculate the deductions by multiplying the gross pay by the witholding percentage. Finally it will calculate the net pay by subtracting the deductions from the gross pay. The module will display the net pay.

Respuesta :

Answer:

netPay module(hourlyRate, numHours, withholdPercent)

   Calculate hourlyRate x numHours and set result to variable grossPay

   Calculate grossPay x withholdPercent and set result to variable deduction

   Calculate grossPay - deduction and set result to variable netPay

   print netPay

   function end

   

Explanation:

Pseudocode is a high level description of a program. The pseudocode is written in a plain language to enable people easier to read and understand the program logic.  The pseudocode is language independent. This means the same program logic presented in the pseudocode can be implemented using various languages.