This is the assignment. Modify the date class of figure 6.12 to perform error checking on the initializer values for the data members month, day, and year. Also provide a member function nextDay to increment the day by one. The Date object should always remain in a consistent state. Write a driver program that tests the nextDay function in a loop that prints the date during each iteration of the loop to illustrate that the nextDay function works correctly. Be sure to test the following cases: (1)Incrementing into the next month. (2)Incrementing into the next year.
## Deliverables
I have to turn in a program listing and the .cpp files and the .h files. Here is a copy of Figure 6.12 as described in the description: //figure 6.12 class Date { public: Date( int=1,int=1,int=1990); void print(); private: int month; int day; int year; }; The file for the main () program must begin with a header containing the following information: Program Title: Details: Input:What input is required for this code segment to accomplish its task. Input Date Types and variable names. Output:What output does this code produce. Output data types and variable names. Intermediate Variables:Intermediate data types and variable names. Global Variables: Global data types and variable names. Design: A description of the algorithm or logic used in the design of the program. Steps used to create the solution. Include any neccessary explanations to understand the program. I have some pseudocode already done that I can send whoever wants to do this program.
## Deadline information
I have to have this program turned in by 6/8/01