-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPayrollCalculation.cs
41 lines (35 loc) · 1.03 KB
/
PayrollCalculation.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SimplePayroll
{
class PayrollCalculation : PayrollDetails
{
public override double getDeduction(double monthlyWage, double philHealth, double sss)
{
return monthlyWage + philHealth + sss;
}
public override double getGrossSalary(double hourDay, double rateHour, int numDays)
{
return hourDay * rateHour * numDays;
}
public override double getMonthlyWage(double grossSalary)
{
return grossSalary * 0.15;
}
public override double getNetSalary(double grossSalary, double deduction)
{
return grossSalary - deduction;
}
public override double getPhilhealth(double grossSalary)
{
return grossSalary * 0.05;
}
public override double getSSS(double grossSalary)
{
return grossSalary * 0.02;
}
}
}