Question: Project Two Zeller's Algorithm Write a Java program for Zeller's Algorithm, which can be used to determine the day of the week for any date
Project Two Zeller's Algorithm Write a Java program for Zeller's Algorithm, which can be used to determine the day of the week for any date in the past, present or future. You can assume the user enters a numeric dates cceptable The formula is G (12.6M-2+K+D ID/4]+IC/41-2C) mod 7 A date is expressed asfollows: M month number March is 1 and February is 12. January and February are considered part of the previous year. Note your program will have to adjust the month entered by the user, and possibly the year K day of the month C century number D year number If year 2012 then C-20 and D 12. Here are additional examples: 7 41776 M-5 M-11 C= 17 C.20 117 2008 K.17 D= 7 (not 8) Test for these values plus others including your birth date. User entry Reau 11 1899 3 10 2014 1 19 2000 Sunday Monday Wednesday 1 1 Page
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
