(Enhancing Class Date)Modify the Date class of Figs. 1–2 to perform error checking on the initializer values for data members month, day and year. Also, provide a member function nextDay to increment the day by one. Write a program that tests function nextDay in a loop that prints the date during each iteration to illustrate that nextDay works correctly. Be sure to test the following cases:
a) Incrementing into the next month.
b) Incrementing into the next year.
Figure 1 Date class declaration. (Member functions are defined in Data.cpp.)

Figure 2 Date class member-function definitions.

We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.