Ask Question

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.

+1
Answers (1)
  1. 23 March, 13:49
    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 & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers