Question: Goal Write a program that provides practice in class development and implementation of programs in multiple separate files using class inheritance. Make sure you thoroughly









Goal Write a program that provides practice in class development and implementation of programs in multiple separate files using class inheritance. Make sure you thoroughly read and understand the directions before you begin Instructions In the dateType source code reviewed in class last week, the class dateType was designed and implemented to do the following operations. Set the month. Set the day. . . Set the year. . . Return the month. Return the day Return the year. Test whether the year is a leap year. In this program, you are to modify the class dateType so that it can perform the following operations of a date, in addition to the operations already defined: Return the number of days in the month. For example, if the date is 3-12-2019, the number of days to be returned is 31 because there are 31 days in March. Return the number of days passed in the year. For example, if the date is 3-18-2019, the number of days passed in the year is 77. Note that the number of days returned also includes the current day. Return the number of days remaining in the year. For example, if the date is 3-18-2019, the number of days remaining in the year is 288. Calculate the new date by adding a fixed number of days to the date. For example, if the date is 3-18-2019 and the days to be added are 25, the new date is 4-12-2019. In addition, you must derive the class extDateType so that the date can also be printed in textual form like March 24, 2019. 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 day and year separated by a comma ---for example, in the form March 24, 2019. Write the definitions of the functions to implement the operations for the class extDateType. Write a main.cpp to test the class. It should test all base and derived class functions with meaningful labels. Program Specifications The program you develop must have the following characteristics. It must contain functions It must contain prototypes It must contain class and extended class definitions and include private variables in the class It must be commented adequately Label the section of the program where the prototypes are O Label each function call Before each function, give a brief description of what the function will do It must contain adequate names for each function It must be split into the indicated files with appropriate filename convention 2 #include
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
