Question
Create a C++ program that generates monthly payroll of the employees. The specifications are as follows: Employee Information (Input): - Payroll period (date) - Employee
Create a C++ program that generates monthly payroll of the employees. The specifications are as follows:
Employee Information (Input):
- Payroll period (date)
- Employee ID
- Employee name
- Monthly salary
- Lates and absences (in minutes)
Note: For lates and absences, convert the minutes to hours by dividing it by 60 minutes.
Hourly rate of the employee can be computed by dividing the monthly salary by 30 then divide the result by 8 hours per day.
Deduction:
- Lates and absences (amount)
- Philhealth employee contribution (constant value of 1000)
- Pag-ibig employee contribution - (constant value of 800)
- SSS employee contribution (constant value of 1,200)
- Tax (12% of the Monthly Salary)
Payslip Output (Note: The format of the output should look exactly like the one below)
Assuming that the late and absences of the sample employee is 30 mins for the whole month.
Format of the Output:
School of Tomorrow
Employee ID: 201401234 Payroll Period: January 1-31, 2018
Employee Name: Juan Dela Cruz
INCOME DEDUCTIONS
Monthly Salary Php18000.00 Lates and absences (37.50)
Philhealth (1000.00)
Pag-ibig (800.00)
SSS (1200.00)
Withholding tax (2160.00)
Total Earnings: Php18000.00
Total Deductions: Php 5197.50
Net Pay: 12802.5
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started