the year to 2001. Write a “set” member function that allows a new date to

Your job is to write a class called that has integer data members to store the day, month and year. All data members should be private. All member functions should be public unless otherwise noted. Write a constructor function for your class that has no parameters. The constructor should set the month to 1 (January), the day to 1 and the year to 2001. Write a “set” member function that allows a new date to be stored in an existing Date object. The function should have 3 integer parameters – one each for the month, day and year. The purpose of these parameters is to provide the values to be stored in the data members of the object. Your set function should do validation checking on the data supplied in the parameters as follows: The prototype might look like: void set(int theMonth, int theDay, int theYear); Write three “print” member functions. Each should print a in one of the following formats: 3/15/2012 March 15, 2012 15 March 2012 Important: these are class member functions that print the date stored in a object. Your prototypes might look like: void printNumeric( ); void printAmerican( ); void printEuropean( ); Generally you should avoid doing any input or output in a class member functions (the application programmer should have control over input and output). Displaying an object in some standard format is an exception to this rule, but you might want to have these functions return the formatted date as a string so that the application can do the printing. Your class should also have a member function that returns the month name as a string. For example, if the object holds the date 3/15/2010, this function would return the string “March”. The function prototype might look like: string getMonthName( ); Your print functions that need to display a month name should use this function. Write a main function to test your class. Be sure that your output shows that each of your member functions works. And be sure that you try invalid data as well as valid data. Purchase the answer to view it