Code for a c++ calendar

Asked By 50 points N/A Posted on -

Hello! I am student of Computer Science and I am trying to write a code for a c++ calendar. I have to submit this assignment on coming Monday so this is very important for me. I am trying to find a formula to write the code for the calendar which can calculate the name of the day on a specific date, help me out with the leap year and display the number of days in a month properly. Looking forward for an accurate formula. Thanks!

Answered By 0 points N/A #180883

Code for a c++ calendar

Hi John,
Here is the coding logic to calculate the day name as the output when the inputs are given as the value of the year and the month of the year. 
Based on the end result required, this logic can be altered a little to get more information. It is important that the values are passed in the right order and the functions called with the appropriate parameters.

Login/Register to Answer

Related Questions