Ask Question
6 February, 23:10

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.

+4
Answers (1)
  1. 7 February, 02:13
    0
    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.
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “Write the pseudocode for a module named netPay. The module will accept 3 parameters by value. The parameters are all real numbers ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers