Homework 2
Display a Calendar

Due: Tuesday, November 6 at 5pm

Outcomes

After successfully completing this assignment, you will be able to...

Before Starting

Read Chapter 4 of Deitel & Deitel.

The Assignment

Write a C program called calendar.c that displays a one-year calendar. Prompt the user for the day of the week on which January 1 falls, and whether or not the year is a leap year. The day that January 1 falls on should be coded as: The calendar should be formatted as shown in the sample execution. Note that numbers are right-justified under the names of the days, and that two spaces separate the names of the days.

Include files

Assumptions and Restrictions