VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Zellers Algorithm and dynamic calendar

by Ashley Butler (2 Submissions)
Category: Math/Dates
Difficulty: Intermediate
Date Added: Wed 3rd February 2021
Rating: (4 Votes)

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
Code Returns
The day of the week that that day occured
Side Effects
None known

Rate Zellers Algorithm and dynamic calendar

Download Zellers Algorithm and dynamic calendar

Download Zellers Algorithm and dynamic calendar (8 KB)

Zellers Algorithm and dynamic calendar Comments

No comments have been posted about Zellers Algorithm and dynamic calendar. Why not be the first to post a comment about Zellers Algorithm and dynamic calendar.

Post your comment

Subject:
Message:
0/1000 characters