# Determine the weekday of New Year’s Day, given the year Y. Use the fact that January 1, 1901 was a Tuesday (W = 2). – Essaylink

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). The post Determine the weekday of New Year’s Day, given the year Y. Use the fact that January 1, 1901 was a Tuesday (W = 2). appeared first on Best Custom Essay Writing Services | EssayBureau.com.

0 replies