private double CalculatePayForTimeCard(TimeCard card) { double overtime = Math.Max(0.0, card.Hours - 8); double normal = card.Hours - overtime; return hourlyRate*normal + hourlyRate*1.5*overtime; }
private double CalculatePayForTimeCard(TimeCard card) { double overtime = Math.Max(0.0, card.Hours - 8); double normal = card.Hours - overtime; return(hourlyRate * normal + hourlyRate * 1.5 * overtime); }
public void AddTimeCard(TimeCard tc) { timeCards[tc.Date] = tc.Hours; }