コード例 #1
0
        private double CalculatePayForTimeCard(TimeCard card)
        {
            double overtimeHours = Math.Max(0.0, card.Hours - 8);
            double normalHours   = card.Hours - overtimeHours;

            return(hourly * normalHours + hourly * 1.5 * overtimeHours);
        }
コード例 #2
0
 public void AddTimeCard(TimeCard card)
 {
     timeCards[card.Date] = card;
 }