(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 next Day to increment the day by one. Write a program that tests function next Day in a loop that prints the date during each iteration to illustrate that next Day works correctly. Be sure to test the following cases:
a) Incrementing into the next month.
b) Incrementing into the next year.
Fig 1. Date class declaration.

Fig 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.