2.8k views
5 votes
Create pseudocode that could be used as a blueprint for a program that would do the following: An employer wants you to create a program that will allow her to enter each employee’s name, hourly rate of pay, number of hours worked in one week, overtime pay rate, payroll deductions (such as medical insurance, savings, etc.), and tax rate. The program should output the employee’s gross pay (before taxes and deductions) and net pay (after taxes and deductions) for each employee for one week.

User Ardal
by
7.5k points

1 Answer

5 votes

Answer:

START LOOP FOR EACH EMPLOYEE:

INPUT employee’s name, hourly rate of pay, number of hours worked, overtime pay rate, payroll deductions, tax rate

SET gross pay = (hourly rate of pay x *weekly hours) + (overtime pay rate x (number of hours worked - *weekly hours))

PRINT gross pay

SET net pay = gross pay - (payroll deductions + (gross pay * tax rate/100 ))

PRINT net pay

END LOOP

* weekly hours (how many hours an employee needs to work to earn overtime pay rate) is not given in the question

Step-by-step explanation:

Create a loop that iterates for each employee

Inside the loop, ask for name, hourly rate, number of hours worked, overtime pay rate, payroll deductions, tax rate. Calculate the gross pay and print it. Calculate the net pay and print it

User Hanka
by
7.3k points