Esempio n. 1
0
        private double CalculatePayForTimeCard(TimeCard card)
        {
            double overtimeHours = Math.Max(0.0, card.Hours - 8);
            double normalHours   = card.Hours - overtimeHours;

            return(hourlyRate * normalHours +
                   hourlyRate * 1.5 * overtimeHours);
        }
Esempio n. 2
0
 internal void AddTimeCard(TimeCard timeCard)
 {
     timecards.Add(timeCard);
 }