validDate Revisited – Python

This entry is part 7 of 13 in the series Zellers Algorithm

I have just realised a mistake in my validDate Function. The mistake is that it only validates the day and not the month or year, i also realised that it would validate the day even if the day is zero so I need to fix this. It was only when I was creating the Java …
Continue reading validDate Revisited – Python

Valid Date

This entry is part 5 of 13 in the series Zellers Algorithm

Another good function which would come in handy for Zeller is a function to make sure the date which was inputted is valid and display a message if the program has encountered an invalid date. For this function I will be using my inArray function which I wrote in a previous post. I will utilise …
Continue reading Valid Date

Zeller Congruence (The Program)

This entry is part 3 of 13 in the series Zellers Algorithm

Now that we know that the algorithm works we can know build a solution We will start by adding code to perform the calculation for this we will need to import the Python math module so that we can use the built in floor function. We will also have to take into account the months …
Continue reading Zeller Congruence (The Program)

Zeller’s Congruence (The Algorithm)

This entry is part 2 of 13 in the series Zellers Algorithm

When I started college in 1998, I was studying A-Level mathematics and was introduced to Zeller’s Algorithm. When I then started studying programming I though this would be a great algorithm to turn into a program(that program can be found here). I have been thinking about projects which I wish to put up on this …
Continue reading Zeller’s Congruence (The Algorithm)