☰
Next Publication In:
Days: 00
Hours: 00
Minutes: 00
Seconds: 00

IMPLEMENTATION OF leap_year_verifier() USING QUAD-CENTURY CONDITIONAL LOGIC - A CASE STUDY

📘 Volume 12 📄 Issue 8 📅 August 2026

👤 Authors

Cadet G.Kathiravan 1 , Cadet K.Sujith 1 , Cadet M.Magizharasan 2
1. Class - XII 2025-26, Sainik School Amaravathinagar, Amaravathinagar, Udumalpet Taluk, Tirupur Dt, Tamilnadu State,
2. Class -XII 2025-26, Sainik School Amaravathinagar, Amaravathinagar, Udumalpet Taluk, Tirupur Dt, Tamilnadu State,

📄 Abstract

Every calendar library, scheduler, and billing system eventually asks the same one-line question: does this year have 366 days or 365? The answer looks trivial until a program has to handle a century year, at which point a rule most people never think about – the exception to the exception – decides whether the check is right or quietly wrong. This paper documents the design, implementation, and verification of leap_year_verifier(), a function that determines Gregorian leap years through three nested conditional statements rather than a single compact Boolean expression. We refer to the third and final check, the one governing century years exactly divisible by four hundred, as the quad-century branch, since it is the test that revives a leap day the centennial rule had just taken away. The function is evaluated against equivalence partitioning, boundary value analysis, and McCabe’s cyclomatic complexity metric, and it is validated empirically across one complete four-hundred-year Gregorian cycle, where it agrees with Python’s own calendar.isleap() on every one of four hundred years and reproduces the historically documented count of ninety-seven leap years without a single exception.

🏷️ Keywords

Leap Year Verifier (LYV) Quad-Century Rule (QCR) Gregorian Calendar (GC) Boundary Value Analysis (BVA) Equivalence Partitioning (EP) Cyclomatic Complexity (CC).

📚 How to Cite:

Cadet G.Kathiravan, Cadet K.Sujith, Cadet M.Magizharasan , IMPLEMENTATION OF leap_year_verifier() USING QUAD-CENTURY CONDITIONAL LOGIC - A CASE STUDY , Volume 12 , Issue 8, August 2026, EPRA International Journal of Multidisciplinary Research (IJMR) , Pages: 292 - 295 ,

🔗 PDF URL

https://cdn.eprapublishing.org/article/1786623045386-43.EPRA28820.pdf

📄 PDF Preview

Click the button above to load the PDF.