You are tasked to create a program that will compute for the salary of an employee for a week. The program should be based on the following requirements: 1. An employee works for a regular of 40 hours a week. Beyond that is considered an over time. For example, an employee worked for 48 hours in that week, it means he has an 8-hour over time and he is entitled to an overtime pay. 2. The overtime rate is 25% of the rate per hour of an employee and the overtime pay is computed as number of overtime hours multiplied by the overtime rate per hour. 3. The gross pay of an employee is its salary without deductions. It is calculated by multiplying the rate per hour and the regular number of hours worked added with overtime pay. 4. Each employee is entitled to several benefits such as SSS, Pagibig and Philhealth. These benefits are deducted to the gross pay of an employee. 5. The SSS contribution is computed as follows: Gross pay ss Php105.00 5% of the gross pay 8% of the gross pay + P75 12% of the gross pay + P110 <=5, 000 5, 001 – 10, 000 10, 001-15, 000 >15, 000 6. Pagibig contribution is fixed to P100.00 and Philhealth is P120.00 7. Also, tax is deducted to employees' gross pay. To compute the tax, the tax table below is used: Gross Pay Тах >50000 32% of GP 45000-49999 23% of GP 35000-44999 18% of GP <35000 8% of GP

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
You are tasked to create a program that will compute for the salary of an employee for a
week. The program should be based on the following requirements:
1. An employee works for a regular of 40 hours a week. Beyond that is considered
an over time. For example, an employee worked for 48 hours in that week, it
means he has an 8-hour over time and he is entitled to an overtime pay.
2. The overtime rate is 25% of the rate per hour of an employee and the overtime
pay is computed as number of overtime hours multiplied by the overtime rate
per hour.
3. The gross pay of an employee is its salary without deductions. It is calculated by
multiplying the rate per hour and the regular number of hours worked added
with overtime pay.
4. Each employee is entitled to several benefits such as SSS, Pagibig and Philhealth.
These benefits are deducted to the gross pay of an employee.
5. The SSS contribution is computed as follows:
Gross pay
<=5, 000
SS
Php105.00
5% of the gross pay
8% of the gross pay + P75
12% of the gross pay + P110
5, 001 – 10, 000
10, 001-15, 000
>15, 000
6. Pagibig contribution is fixed to P100.00 and Philhealth is P120.00
7. Also, tax is deducted to employees' gross pay. To compute the tax, the tax table
below is used:
Gross Pay
Таx
>50000
32% of GP
45000-49999
23% of GP
35000-44999
18% of GP
<35000
8% of GP
Transcribed Image Text:You are tasked to create a program that will compute for the salary of an employee for a week. The program should be based on the following requirements: 1. An employee works for a regular of 40 hours a week. Beyond that is considered an over time. For example, an employee worked for 48 hours in that week, it means he has an 8-hour over time and he is entitled to an overtime pay. 2. The overtime rate is 25% of the rate per hour of an employee and the overtime pay is computed as number of overtime hours multiplied by the overtime rate per hour. 3. The gross pay of an employee is its salary without deductions. It is calculated by multiplying the rate per hour and the regular number of hours worked added with overtime pay. 4. Each employee is entitled to several benefits such as SSS, Pagibig and Philhealth. These benefits are deducted to the gross pay of an employee. 5. The SSS contribution is computed as follows: Gross pay <=5, 000 SS Php105.00 5% of the gross pay 8% of the gross pay + P75 12% of the gross pay + P110 5, 001 – 10, 000 10, 001-15, 000 >15, 000 6. Pagibig contribution is fixed to P100.00 and Philhealth is P120.00 7. Also, tax is deducted to employees' gross pay. To compute the tax, the tax table below is used: Gross Pay Таx >50000 32% of GP 45000-49999 23% of GP 35000-44999 18% of GP <35000 8% of GP
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY