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. Note: you may write a main.cpp to test your class but will not be graded on the main.cpp. I am missing extDateTypeImp.cpp, that is what I need help with. The images attached are the codes that I Have been provided already. PLEASE help with extDateTypeImp.cpp. This is what cengage mindTap is checking for: Correct long date is output
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.
Note: you may write a main.cpp to test your class but will not be graded on the main.cpp.
I am missing extDateTypeImp.cpp, that is what I need help with. The images attached are the codes that I Have been provided already. PLEASE help with extDateTypeImp.cpp.
This is what cengage mindTap is checking for: Correct long date is output
![dateType.h
dateTypelmp.cpp
extDateType.h
extDateTypelmp.
2 #ifndef extDateType_H
3 #define extDateType_H
4
5 #include <string>
7 #include "dateType.h"
8
9 using namespace std;
10
11 string months[] = {"January", "February", "March",
"April",
12
"May", "June", "July", "August",
13
"December"};
"September", "October", "November",
14
15 class extDateType: public dateType
16 {
17 public:
void printLongDate();
void setDate(int, int, int);
void setMonth(int m);
18
19
20
21
22
void printLongMonthYear ();
23
24
extDateType();
extDateType(int, int, int);
25
26
27 private:
28
29 };
30
string month;
31 #endif
32](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2Fb7f69a15-0916-4ce9-9c0b-3bf552a1a604%2F6f129b63-b782-49db-bd3f-aca2e70fa9c5%2Fplgdm8_processed.jpeg&w=3840&q=75)
![dateType.h
dateTypelmp.cpp
extDate Type.h
extDateTypelmp..
1 #ifndef dateType_H
2 #define dateType_H
3
4 class dateType
5 {
6 public:
void setDate(int, int, int);
void setMonth(int);
void setDay(int);
void setYear(int);
8
10
11
void print() const;
13
14
int numberOfDaysPassed();
15
16
int numberofDaysLeft();
17
18
void incrementDate(int nDays);
19
int getMonth() const;
int getDay() const;
int getYear() const;
20
21
22
23
24
int getDaysInMonth();
25
26
bool isLeapYear();
27
28
dateType(int
= 1, int = 1, int = 1900);
29
30 private:
31
int dMonth;
32
int dDay;
33
int dYear;
34 };
35
36 #endif
O O12](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2Fb7f69a15-0916-4ce9-9c0b-3bf552a1a604%2F6f129b63-b782-49db-bd3f-aca2e70fa9c5%2Fofnyg4w_processed.jpeg&w=3840&q=75)
![](/static/compass_v2/shared-icons/check-mark.png)
Trending now
This is a popular solution!
Step by step
Solved in 5 steps with 4 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
![C How to Program (8th Edition)](https://www.bartleby.com/isbn_cover_images/9780133976892/9780133976892_smallCoverImage.gif)
![Database Systems: Design, Implementation, & Manag…](https://www.bartleby.com/isbn_cover_images/9781337627900/9781337627900_smallCoverImage.gif)
![Programmable Logic Controllers](https://www.bartleby.com/isbn_cover_images/9780073373843/9780073373843_smallCoverImage.gif)