Question: Forgot to ask for coding in c++ last time Design a class to print a monthly calendar given a month and a year. Use a

Forgot to ask for coding in c++ last time

Design a class to print a monthly calendar given a month and a year. Use a dayType object to hold the first day of the month, use an extendedDateType object with the day set to 1 to store the month and year. Note that these objects are attributes of a calendar object and are hidden from a user of the calendar class. Use the following CRC specification to develop this class:

Class: calendarType
Super Classes:
Sub Classes:
Description: Prints a calendar for a specified month and year
Responsibilities: Collaborations:
Initialize and set the month and year extendedDateType
Initialize and set the first day of the month (For example, April 1, 2016 starts on a Friday). Assume that you can print a calendar for any month starting January 1, 1500 and note that January 1, 1500 is a Monday). dayType
Print the calendar. Note that extendedDateType can provide the label for the calendar and the number of days in the month). Also dayType can provide the first day of the week for the current month and year. extendedDateType, dayType

please give all code in c++

Test the calendar class by writing a program which uses a loop to produce output similar to the following:

September 2017 Sun Mon Tue Wed Thu Fri Sat 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

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!