Program / Task Name:

   What Day Is It?




Point Value:




Task Description

You’ve been tasked with creating a calendar for this year (2003).  Instead of printing the entire calendar, you will prompt the user for a month and day.  You will then display the month and day entered along with the day of the week on which that day occurs.

Program Input

Your program will prompt the user for:

  • the number of the month, where 1=January, 2=February, 3=March, 4=April, 5=May, 6=June, 7=July, 8=August, 9=September, 10=October, 11=November, and 12=December
  • the day of the week on which the month begins, where 1=Sunday, 2=Monday, 3=Tuesday, 4=Wednesday, 5=Thursday, 6=Friday, 7=Saturday

You can assume that only valid entries for the month and day of the month will be entered.

Enter the month: 3

Enter the day: 1

Program Output

Your program must display a month, day and day of the week in the following format:

March 1, 2003 is a Saturday


  (c) 2004 Hewlett-Packard Company