CIS 260 C++ Programming

Program Requirements: Calendar Printer

Create a program which accepts the number of days in a month and the day of the week on which the first day falls, and prints a formatted calendar for the month.

Example:

     Enter Number of Days: 31  

     Starting Day (1=Sun, 2=Mon...): 4  
  

      S   M   Tu  W   Th  F  Sa  
     --- --- --- --- --- --- ---
                  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

     Thank You

Your program should restrict the number of days in a month to the range 28 to 31.

Use functional decomposition to create an algorithm. Your program should include at least two functions in addition to main().

Following the guidelines discussed in class, construct a test set for the program.

Program Requirements

Problem Description
Algorithm
Function Specifications
Test Set Design
Source Code
Sample Output