Skip to content

TahaRehmanHaroon/Date-To-Day-Calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

C++ Date-to-Day Calculator

Archive Note (1st Semester Project)

Note: This repository is part of my foundational archive. This project was originally developed approximately 2 years ago during my 1st semester as a computer science student. I am uploading it now to establish a complete timeline of my growth as a developer.

More projects from my subsequent semesters (including advanced algorithms, AI simulations, and graphics tools) will be uploaded to this profile soon.


About the Project

This is a pure logic-heavy console application written in C++. Given any year and month input, the algorithm dynamically processes leap years, monthly day rollovers, and baseline shifts relative to the January 1, 1900 (Monday) epoch to determine the correct day of the week.

Key Logic Handled:

  • Manual epoch-offset calculation tracking back to 1900.
  • Leap year detection cycles.
  • Dynamic baseline remainder checking (% 7 rollover tracking).

How to Run

To compile and run this application locally, use any standard C++ compiler (like GCC):

g++ task5daycheck.cpp -o DayCalculator
./DayCalculator

About

A logic-heavy C++ console application built during my 1st semester to calculate the day of the week for any given date from the 1900 epoch.

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages