C语言课程设计《工资管理系统》如何处理员工的请假扣款?

C 课程设计《工资管理系统》

double calculateDeduction(int leaveType, int days, double dailyWage) {
double deduction = 0;
switch (leaveType) {
case LEAVE_SICK:
deduction = days * dailyWage * 0.5;
break;
case LEAVE_PERSONAL:
deduction = days * dailyWage;
break;
}
return deduction;
}

利唐i人事HR社区,发布者:ihreditor,转转请注明出处:https://www.ihr360.com/hrnews/20241236281.html

(0)
上一篇 1天前
下一篇 1天前

相关推荐