The program printcal.cpp has been started for you. You need only complete the function PrintMonth . PrintMonth is given a month and year, and prints out a calendar in the format above. You may call the function FirstWeekSpaces which has already been written. Note that FirstWeekSpaces will print 9 spaces for a 1 occurring on Wednesday, but another blank is needed before the 1 since single digit numbers have a blank before and a blank after, so that each number printed uses three spaces.
Nothing is printed visibly for setw, but rather it sets up formatting for the next number output.
For example, consider the following statement. If your Date variable is named calDate, then the line below can be used to print the day in two spaces followed by a blank.