1. leap year program

Assuming that January 1st of a certain leap year is a Monday, i have to compute the day of the week for a given date in that year. could someone help me out with my some pseudo code of how i should go about doing this? im not quite sure how to compute it.

2. Yep... read up on the functions provided by the time library... #include the time.h header...

3. do they have a function like that?

4. Welllllll... you might try actually looking up the library documentation... If you don't have it locally with your compiler... Google is your friend.

5. I think he's supposed to write this one by hand. This is a classic exercise, and there is actually a formula for calculating if a year is based on leap year. Behold, the power of the internet!

Quzah.

6. Originally Posted by quzah
I think he's supposed to write this one by hand. This is a classic exercise, and there is actually a formula for calculating if a year is based on leap year. Behold, the power of the internet!

Quzah.

LOL... in that case.... nevermind!...

It's not all that hard to do by hand just add up the days in each month, etc...