Question
Urgent Create flowchart and program for the ff. C Language Company A needs a program that will compute for the over-all compensation of its employees
Urgent
Create flowchart and program for the ff.
C Language
Company A needs a program that will compute for the over-all compensation of its employees for the month of December.
user needs to input the following to get the output
Employee #:
Position:
Monthly Salary:
Monthly Stay:
Status:
No. of used leaves for the month:
No. of used leaves for the whole year:
No. of OT hours reported:
The total compensation and its breakdown should be the output of the program, these are as follows:
1. Salary
2. 13th month bonus
3. Leave conversion
4. Total compensation
Salary = Net pay - monthly contributions - No. of unpaid leaves (absences) + OT hours
13th month = ((Salary (untaxed)/months of a year) * no. of months in the company)) - taxable amount
* taxable amount = 12% of any amount more than 92,000
Leave Conversion = Daily Rate * Remaining leaves
Total Compensation = Salary + 13th month pay + Leave conversion pay
Monthly contributions:
SSS 581.30
PhilHealth 550.00
Pagibig 100.00
The criteria are as follows:
- Regular employees only are entitled for OT pay
- Regular employees only are entitled to have leave.
- Regular employees only are entitled for Leave conversion
- Regular employees have 20 leaves in total (given that they are staying in the company for 12 months) but maximum of 10 leaves can only be converted.
- Regular employees with less than a year of staying will be given a prorated leaves (or allowable leaves).
- Prorated leaves = (20 leaves / months of a year) * months of stay
- OT pay are 25% of the hourly rate for work performed in excess of 8 hours on ordinary day
- Developers only are entitled for OT pay
- Daily rate = monthly salary / 30 days
Use the program on the ff.:
Employee #
Position
Monthly Salary
Months of stay
Status
No. of used leaves for the month (December)
No. of OT hours reported
No. of used leaves for the whole year
1
Developer
25000
4
On-probation
2
28
12
2
Developer
30000
3
On-probation
1
4
4
3
Supervisor
100000
7
Regular
7
16
8
4
Developer
97000
12
Regular
7
6
11
5
Developer
45000
2
On-probation
0
12
0
6
Developer
30000
10
Regular
3.5
10
3.5
7
Supervisor
110000
11
Regular
3
26
3
8
Developer
65000
12
Regular
2
4
2
9
Developer
93000
3
On-probation
3
8
3
10
Manager
130000
5
On-probation
5
32
12
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