# Write a program that computes the monthly net pay of the employee for a steelfactory. The input for this program is the hourly rate of pay, the number of regular andthe overtime hour work. The tax deductible rate is 20%. You need first to calculate thegross pay, which is the sum of the wages earned from regular hours and overtime hours,the overtime is paid at 1.5 times the regular rate. Then you subtract the tax from the grosspay to get the net pay of the employee.

Question
91 views
Write a program that computes the monthly net pay of the employee for a steel
factory. The input for this program is the hourly rate of pay, the number of regular and
the overtime hour work. The tax deductible rate is 20%. You need first to calculate the
gross pay, which is the sum of the wages earned from regular hours and overtime hours,
the overtime is paid at 1.5 times the regular rate. Then you subtract the tax from the gross
pay to get the net pay of the employee.
check_circle

Step 1

Employee’s gross salary is calculated by following formula , datatype and variables:

Variables:

rop= rate_of_pay.

rh= regular_hours.

oh= overtime_hours.

gp= gross pay.

np= net pay.

tax.= tax calculation.

Data Type: float

Formula used: 1. grosspay=(rh*rop)+(1.5*oh*rop).

1. netpay=gp-(gp*0.2).
...

### Want to see the full answer?

See Solution

#### Want to see this answer and more?

Solutions are written by subject experts who are available 24/7. Questions are typically answered within 1 hour.*

See Solution
*Response times may vary by subject and question.
Tagged in

### Programing Language 