public void Payday(PayCheck payCheck) { payCheck.GrossPay = Classification.CalculatePay(payCheck); payCheck.Deductions = Affiliation.CalculateDeductions(payCheck); payCheck.NetPay = payCheck.GrossPay - payCheck.Deductions; Method.Pay(payCheck); }
public void Payday(Paycheck paycheck) { var grossPay = Classification.CalculatePay(paycheck); var deductions = Affiliation.CalculateDeductions(paycheck); var netPay = grossPay - deductions; paycheck.GrossPay = grossPay; paycheck.Deductions = deductions; paycheck.NetPay = netPay; Method.Pay(paycheck); }
internal void Payday(PayCheck pc) { var grossPay = Classification.CalculatePay(pc); var deductions = Affiliation.CalculateDeductions(pc); var netPay = grossPay - deductions; pc.GrossPay = grossPay; pc.Deductions = deductions; pc.NetPay = netPay; Method.Pay(pc); }
public void Payday(Paycheck pc) { double grossPay = Classification.CalculatePay(pc); double deductions = Affiliation.CalculateDeductions(pc); double netPay = grossPay - deductions; pc.GrossPay = grossPay; pc.Deduction = deductions; pc.NetPay = netPay; Method.Pay(pc); }
public void Payday(Paycheck paycheck) { double grossPay = Classification.CalculatePay(paycheck); double deductions = affiliation.CalculateDeductions(paycheck); double netPay = grossPay - deductions; paycheck.GrossPay = grossPay; paycheck.Deductions = deductions; paycheck.NetPay = netPay; Method.Pay(paycheck); }