Write a C program that displays on what day a specific date (e.g., June 6, 6666)
ID: 440303 • Letter: W
Question
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. Option: 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 http://en.wikipedia.org/wiki/Perpetual_calendar You can use any other formula that you may find on the web too. For example: if user selects option 1 and enters: 2 15 2006 your program should print Wednesday 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 (if you want you can modify it):Explanation / Answer
dude which question? there are a lot of them!!
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.