Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Write a C program that displays on what day a specific date (e.g., June 6, 6666)

ID: 440315 • 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

Explanation / Answer

I'll give you the concept rather than the answer, so that you can churn it in your head. To display options to the user, you can use switch case . To display the date and time, you can use the ctime function. The codes for them can be easily found over the internet, once you plan your design. Cheers! Please rate :)

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote