Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Advances In Knowledge Discovery In Databases

Authors: Animesh Adhikari, Jhimli Adhikari

1st Edition

3319132121, 9783319132129

More Books

Students also viewed these Databases questions