October 1999 September 1999
S M Tu W Th F S S M Tu W Th F S
1 2 1 2 3 4
3 4 5 6 7 8 9 5 6 7 8 9 10 11
10 11 12 13 14 15 16 12 13 14 15 16 17 18
17 18 19 20 21 22 23 19 20 21 22 23 24 25
24 25 26 27 28 29 30 26 27 28 29 30
31
void CountMondayFridays(int month, int year,
int & mondayCount, int & fridayCount)
// pre: 1 <= month <= 12 (1 = january, ... 12 = december)
// post: mondayCount the # of mondays and fridayCount = # of fridays