Answered step by step
Verified Expert Solution
Question
1 Approved Answer
I need the answer as soon as possible 40% 19:50 The class dateType defined in Programming Exercise 6 prints the date in numerical form. Some
I need the answer as soon as possible
40% 19:50 The class dateType defined in Programming Exercise 6 prints the date in numerical form. Some applications might require the date to be printed in another form, such as March 24, 2019. Derive the class extDateType so that the date can be printed in either form. Add a member variable to the class extDateType so that the month can also be stored in string form. Add a member function to output the month in the string format, followed by the year-for example, in the form March 2019. Write the definitions of the functions to implement the operations for the class extDateType. Using the classes extDateType (Programming Exercise 8) and dayType (Chapter 10, Programming Exercise 5), design the class calendar Type so that, given the month and the year, we can print the calendar for that month. To print a monthly calendar, 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 calendar. 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 calendar Type has two member variables: an object of the type dayType and an object of the type extDateType. Design the class calendar Type so that the program can print a calendar for any month starting 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 add the appropriate days to Monday of January 1, 1500. For the class calendarType, include the following operations: Determine the first day of the month for which the calendar will be printed. Call this operation firstDayOfMonth. b. Set the month. Set the year. Solve them with C++ please Programming Exercises 815 a. c d. e Return the month. Return the year. Print the calendar for the particular month. Add the appropriate constructors to initialize the member variables. f 9. oStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started