VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Zellers Algorithm and dynamic calendar

Ashley Butler  (2 Submissions)   Math/Dates   Intermediate   Wed 3rd February 2021

This submission is based around Zellers Algorithm (whcih calculates what day of the week a date falls on) There are some other "zellers algorithms" on the internet that do not work, this one is from the MEI Decision Mathematics 1 book (about page 1 I think). From this code I have created a calendar that can show a months worth of days from the year 0 to the year 9999 (though they're Gregorian dates not Julian for dates, though that could be an option for the future!) Oh and it can calculate leap years as well

Inputs
Just the date you wish to check

Assumes
Has all the algorithms written in plain english that can be accessed when the app is running

Returns
The day of the week that that day occured

Side Effects
None known

Rate Zellers Algorithm and dynamic calendar (5(5 Vote))

Download Zellers Algorithm and dynamic calendar

Zellers Algorithm and dynamic calendar Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters