According to Zeller's Formula, the day of the week can be calculated by: f=k+(13m?1)/5+D+D/4+C/4?2C where: •k is the day...

70.2K

Verified Solution

Question

Advance Math

According to Zeller's Formula, the day of the week can becalculated by:

f=k+(13m?1)/5+D+D/4+C/4?2C

where:

•k is the day of the month.

•m is the month number designated in a special way: March is 1,April is 2, . . . , December is10; January is 11, and February is12. If x is the usual month number, i.e. for January x is 1, forFebruary x is 2, and so on; then m can be computed with thisformula:m= (x+21)%12+1,where % is the usual modulus (i.e.remainder) function. Alternatively,m can be computed in thisway:

m= x+10, if x?2, or x?2 otherwise.

•D is the last two digits of the year, but if it is January orFebruary those of the previous year are used.

•Cis for century, and it is the first two digits of year. In ourexample,C=20.

•From the result f we can obtain the day of the week based onthis code:

Day0 = Sunday...Day 6 = Saturday

For example, if=123, thenf%7=4, and thus the day was Thursday.Again, % is the modulus function.

What was the day on June, 1 2005 according to Zeller'sformula?

Answer & Explanation Solved by verified expert
4.0 Ratings (648 Votes)
    See Answer
Get Answers to Unlimited Questions

Join us to gain access to millions of questions and expert answers. Enjoy exclusive benefits tailored just for you!

Membership Benefits:
  • Unlimited Question Access with detailed Answers
  • Zin AI - 3 Million Words
  • 10 Dall-E 3 Images
  • 20 Plot Generations
  • Conversation with Dialogue Memory
  • No Ads, Ever!
  • Access to Our Best AI Platform: Flex AI - Your personal assistant for all your inquiries!
Become a Member

Other questions asked by students