コード例 #1
0
        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;
        }
コード例 #2
0
        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);
        }
コード例 #3
0
 public void AddTimeCard(TimeCard tc)
 {
     timeCards[tc.Date] = tc.Hours;
 }
コード例 #4
0
 public void AddTimeCard(TimeCard tc)
 {
     timeCards[tc.Date] = tc.Hours;
 }