Summative Assessment 2: Simple Payroll Computation Program Using Functions Computer Programming PROGRAM REQUIREMENTS: You are tasked to create a new version of the payroll program you created in SA1. Name your program as sa2__section>.cpp. This time, you need to use functions and loop structures to improve the current payroll system that you have. Check the user requirements given and make sure that you will accomplish them all.

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

Simple payroll program in Dev C++ code

Summative Assessment 2: Simple Payroll Computation Program Using Functions
Computer Programming
PROGRAM REQUIREMENTS:
You are tasked to create a new version of the payroll program you created in SA1. Name
your program as sa2_<lastname>_section>.cpp. This time, you need to use functions
and loop structures to improve the current payroll system that you have. Check the
user requirements given and make sure that you will accomplish them all.
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. Use a function for this and name it as computeGP()
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. To compute for
these benefits, use the following functions in your code. Each function should
receive inputs and return the correct computation to the calling function.
a. computeSSS()
b. computeLove()
c. computePH()
5. The SSS contribution is computed as follows:
SSS
Gross pay
<=5, 000
5, 001 - 10,000
10, 001-15, 000
>15, 000
Php105.00
5% of the gross pay
8% of the gross pay + P75
12% of the gross pay + P110
Transcribed Image Text:Summative Assessment 2: Simple Payroll Computation Program Using Functions Computer Programming PROGRAM REQUIREMENTS: You are tasked to create a new version of the payroll program you created in SA1. Name your program as sa2_<lastname>_section>.cpp. This time, you need to use functions and loop structures to improve the current payroll system that you have. Check the user requirements given and make sure that you will accomplish them all. 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. Use a function for this and name it as computeGP() 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. To compute for these benefits, use the following functions in your code. Each function should receive inputs and return the correct computation to the calling function. a. computeSSS() b. computeLove() c. computePH() 5. The SSS contribution is computed as follows: SSS Gross pay <=5, 000 5, 001 - 10,000 10, 001-15, 000 >15, 000 Php105.00 5% of the gross pay 8% of the gross pay + P75 12% of the gross pay + P110
6. Pagibig contribution is fixed to P100.00 and Philhealth is contribution is based on
the following:
Gross pay
<=5, 000
5, 001 - 10,000
>10,000
Philhealth
Php55.00
3.5% of the gross pay
8% of the gross pay + P25.50
7. Also, tax is deducted to employees' gross pay. To compute the tax, use the
function compute TAX() that will return the correct computation to the calling
function. Use the tax table below:
Gross Pay
>50000
Tax
32% of GP
23% of GP
18% of GP
<35000
8% of GP
8. After computing all the deductions, the net salary of an employee is calculated. It
is computed as gross pay-total deductions. Use another function for this one.
Name it computeNET().
9. The program should also accept the following employee information: LastName,
FirstName, MiddleName, Department, Position, rate per hour and number of
hours worked.
10. If the employee's position is a manager, there is an additional Php5, 000.00 to his
net salary.
11. The program should be able to display the summary or pay slip of an employee.
See sample pay slip below.
12. Create a video of you discussing your code. You need to explain in the video the
overall structure of your program and how you used functions and loops to
accomplish the program.
13. The video should be uploaded to YT.
14. Your work will be graded according to the following criteria:
a. Correctness and Completeness
45000-49999
35000-44999
of the Output
b. Use of Functions and Loops
c. Clarity of Discussion in the Video
10 points
8 points
7 points
Transcribed Image Text:6. Pagibig contribution is fixed to P100.00 and Philhealth is contribution is based on the following: Gross pay <=5, 000 5, 001 - 10,000 >10,000 Philhealth Php55.00 3.5% of the gross pay 8% of the gross pay + P25.50 7. Also, tax is deducted to employees' gross pay. To compute the tax, use the function compute TAX() that will return the correct computation to the calling function. Use the tax table below: Gross Pay >50000 Tax 32% of GP 23% of GP 18% of GP <35000 8% of GP 8. After computing all the deductions, the net salary of an employee is calculated. It is computed as gross pay-total deductions. Use another function for this one. Name it computeNET(). 9. The program should also accept the following employee information: LastName, FirstName, MiddleName, Department, Position, rate per hour and number of hours worked. 10. If the employee's position is a manager, there is an additional Php5, 000.00 to his net salary. 11. The program should be able to display the summary or pay slip of an employee. See sample pay slip below. 12. Create a video of you discussing your code. You need to explain in the video the overall structure of your program and how you used functions and loops to accomplish the program. 13. The video should be uploaded to YT. 14. Your work will be graded according to the following criteria: a. Correctness and Completeness 45000-49999 35000-44999 of the Output b. Use of Functions and Loops c. Clarity of Discussion in the Video 10 points 8 points 7 points
Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

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