Help with writing C program?

Hello all, I have just started learning C, I spent the last 3 semesters using only Java. I was assigned this homework:
[code]Write a C program that displays on what day a specific date (e.g., June 6, 6666) falls or displays a twelve month calendar for an arbitrary year. Specifically, your program should first prompt the user for an option
1: Find on what day a specific date falls.
2: Display the twelve month calendar for a given year.
Depending on the given option, the program asks user to enter valid mm dd yyyy or just yyyy and call the necessary functions to print out the day or the calendar month by month. In either case the year yyyy should be greater than 1751 (Gregorian Calendar). You can use Perpetual calendar formula to determine the day for a specific date. For more details and example about this formula, see
For example: if user selects option 1 and
enters: 2 15 2006
your program should print
if user selects option 2 and
enters: 2009
your program should print
*** CALENDAR for 2009 ***
January 2009
Sun Mon Tue Wed Thu Fri Sat
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
February 2009
Sun Mon Tue Wed Thu Fri Sat
1 2 3 4 5 6 7
8 9 10 11 12 13 14
Implementation Notes
Since we have not yet studied arrays, strings, or arrays of strings, you should design your algorithm to use if-else or switch statements to print the month or day names. You must partition your program into multiple functions. Here is an example partition:
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!