Answered step by step
Verified Expert Solution
Question
1 Approved Answer
3 Calculate the Weekday for Any Date [ 5 0 points ] Zeller s congruence ( source:Click _ here _ for _ more ) is
Calculate the Weekday for Any Date points
Zellers congruence source:Clickhereformore is an algorithm devised by Christian Zeller to calculate
the day of the week for any calendar date. For todays Gregorian calendar, Zellers congruence is
G q m
U U
V
V mod
where G is the day of the week means Saturday, means Sunday, means Monday, q is the day of
the month q m is the month m and y is the year of the calendar date y
Further, the above equation distinguishes V as the century that is V y
and U as the year of
the century that is U y mod
Finally, there is an exception in Zellers congruence for the months of January and February which need to
be counted as month and respectively, of the previous year. Thus, if m or m then we need to
add months to the value of m and subtract year from y before we feed the values into the above equation.
Your weekday calculation program should contain the following sections:
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started