• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Making a java program for my intro CS class... I need help.

In this exercise I'm supposed to print a calender for the month and year that a user requests. They input the year, the month and the day that Jan. 1 falls on during that year.

I have the program setup so that it will print the days of the month, but I don't understand how knowing the day Jan. 1 falls on is supposed to help me figure out what the first day of each successive month is supposed to be.

Note: We've been told we can use something called "Zeller's Congruence" (which we havent been given any info on), but I'm not using that at this point. I'd like to get it working without this thing first just so I understand what is going on.
 
I figured that it had to do with the number of days in each month, but I'm really tired and I still dont understand the connection.

Btw, this isnt due until the 23rd, so I'm not in a big hurry 🙂

Thanks for the help guys

 
i'm guessing it's gonna be based on a gregorian calendar?
leap years n stuff? yea... you'll need to find a way to count the days and put them in correct order.
 
Originally posted by: Stefan
just a hint.

it looks like people keep quoting that one responce, so I'm gonna think about that for a bit.

well just think, if you know today is the 8th and it's a saturday, what day will the 10th be? it's the same idea...
 
Back
Top