Ask Question
24 May, 21:25

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. 25 May, 00:48
    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?
Find 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 and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers