40% D 9: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....

I need the answer as soon as possible40% D 9:50<br>The class dateType defined in Programming Exercise 6 prints the date<br>in numerical form. Some applications might require the date to be printed<br>in another form, such as March 24, 2019. Derive the class extDateType<br>so that the date can be printed in either form.<br>Add a member variable to the class extDateType so that the month<br>can also be stored in string form. Add a member function to output the<br>month in the string format, followed by the year-for example, in the<br>form March 2019.<br>Write the definitions of the functions to implement the operations for<br>the class extDateType.<br>Using the classes extDateType (Programming Exercise 8) and dayType<br>(Chapter 10, Programming Exercise 5), design the class calendarType<br>so that, given the month and the year, we can print the calendar for that<br>month. To print a monthly calendar, you must know the first day of the<br>month and the number of days in that month. Thus, you must store the<br>first day of the month, which is of the form dayType, and the month and<br>the year of the calendar. Clearly, the month and the year can be stored<br>in an object of the form extDateType by setting the day component of<br>the date to 1 and the month and year as specified by the user. Thus, the<br>class calendarType has two member variables: an object of the type<br>dayType and an object of the type extDateType.<br>Design the class calendarType so that the program can print a calendar<br>for any month starting January 1, 1500. Note that the day for January 1 of<br>the year 1500 is a Monday. To calculate the first day of a month, you can<br>add the appropriate days to Monday of January 1, 1500.<br>For the class calendarType, include the following operations:<br>Determine the first day of the month for which the calendar will be<br>printed. Call this operation firstDayofMonth.<br>b. Set the month.<br>a.<br>Set the year.<br>Solve them with C++ please<br>C.<br>Programming Exercises | 815<br>d.<br>Return the month.<br>Return the year.<br>e.<br>f. Print the calendar for the particular month.<br>g.<br>Add the appropriate constructors to initialize the member variables.<br>

Extracted text: 40% D 9: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 calendarType 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 calendarType has two member variables: an object of the type dayType and an object of the type extDateType. Design the class calendarType 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. a. Set the year. Solve them with C++ please C. Programming Exercises | 815 d. Return the month. Return the year. e. f. Print the calendar for the particular month. g. Add the appropriate constructors to initialize the member variables.
Jun 05, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions ยป

Submit New Assignment

Copy and Paste Your Assignment Here