Please help me with my programing question 10 and 11. 10. Using the classes extD
ID: 3626778 • Letter: P
Question
Please help me with my programing question 10 and 11.10. Using the classes extDateType and dayType, design the class calenderType so that, given the month and the year, we can print the calender for that month. To print a monthly calender, you must know the first day of the month and the number of days in that month. Thus, you must store the first day of the month, which is of the form dayType, and the month and the year of the calender. Clearly, the month and the year can be stored in an object of the form extDateType by setting the day component of the date to 1 and the month and year as specified by the user. Thus, the class calenderType has two member variables: an object of the type dayType and an object of the type extDateType.
Design the class calenderType sothat the program can print a calender for any month starting with January 1, 1500. Note that the day for January 1 of the year 1500 is a Monday. To calculate the first day of a month, you can ass the appropriate days to Monday of January 1, 1500.
For the class calenderType, include the following operations:
a. Determine the first day of the month for which the calender will be printed. Call this operation firstDayofMonth.
b. Set the month.
c. Set the year.
d. Return the month.
e. Return the year.
f. Print the calender for the particular month.
g. Add the appropriate constructors to initialize the member variables.
11a. Write the definitions of the member functions of the class calenderType (designed in Programming Exercise 10) to implement the operations of the class calenderType.
b. Write a test program to print the calender for either a particular month or a particular year. For example the calender for September 2013 is:
Sunday Monday Tuesday Wednesday Thursday Friday Saturday
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
Explanation / Answer
hope this will give u a start the answer for problem 7 is here and u can ask for the solution of 11 and 12 when u log to the text book solution section http://www.cramster.com/solution/solution/1139713