Example #1
0
 static void PrintSalary(SalaryCalculator all)
 {
     Console.Write($"{all.employeeName} has worked {all.hoursWorked} hours on the relevant week.");
     Console.WriteLine($"The hourly pay of {all.employeeName} is {all.hourlyPay}.");
     Console.WriteLine($"He/she has {all.ExcessHours()} hour(s) overtime.");
     Console.WriteLine($"The total pay for the week of {all.employeeName} is {(all.OverTime() + all.NormalHours()) * all.hourlyPay}.\n");
 }