Give a flannel board presentation. 1. Set up area with board. 2. Check pieces. 3. Practice. 4. Place pieces in order of appearance. 5. Gather children. 6. Place pieces out….
Determine the weekday of New Year’s Day, given the year Y. Use the fact that January 1, 1901 was a Tuesday (W = 2).
Dates Use some of the previous algorithms (Leap, Days) and create:
a. Valid, an algorithm to test whether a given date Year, Month, Day is a valid date.
b. UnDate, an algorithm to convert a Julian date Julian,Year back into the Gregorian form Day, Month, Year.
c. DaysLived, an algorithm to determine the number of days a person has lived, from the birth date to the present date.
d. Age, an algorithm to determine the (integer) age of a person.
e. WeekDate, an algorithm to determine the weekday a given date falls on, when given that the first day of the year falls on the Wth day (where W = 0 for Sunday, W = 1 for Monday, … and W = 6 for Saturday). f. FirstDate, an algorithm to determine the weekday of New Year’s Day, given the year Y. Use the fact that January 1, 1901 was a Tuesday (W = 2). Notice that a year of 365 days has exactly 52 weeks plus one day (i.e. 52 ´ 7 = 364).