The following code is included in the CalcSalary class:
You have been given the responsibility of creating a class named CalcSalary that will determine the salaries of Domain.com’s staff.
The CalcSalary class includes methods to increment and decrement staff salaries. The following code is included in the CalcSalary class:
public class CalcSalary {
// for promotions
public static bool IncrementSalary (Employee Emp, double Amount){
if (Emp.Status == QuarterlyReview.AboveGoals)
Emp.Salary += Amount;
return true;