Question: Please write C++ program following the below instructions. THANKS!! Your program should implement the following: 1. Date class Implement a Date class that has the

Please write C++ program following the below instructions. THANKS!!

Please write C++ program following the below instructions. THANKS!! Your program shouldimplement the following: 1. Date class Implement a Date class that hasthe following private member variables: month of type int day of typeint year of type int monthName, a static array of strings whichwill be initialized to the months' names "January", "February", etc. and thefollowing public member functions: . set (month_, day_, year_) mutator that setsthe variables month, day and year to the parameter values overloaded dl,(d2-d1) returns the number of days elapsed from d1 to d2. Forexample, if dl is 02/13/2100 and d2 is 02/14/2100, (d2 - dl)

Your program should implement the following: 1. Date class Implement a Date class that has the following private member variables: month of type int day of type int year of type int monthName, a static array of strings which will be initialized to the months' names "January", "February", etc. and the following public member functions: . set (month_, day_, year_) mutator that sets the variables month, day and year to the parameter values overloaded dl, (d2-d1) returns the number of days elapsed from d1 to d2. For example, if dl is 02/13/2100 and d2 is 02/14/2100, (d2 - dl) is equal to 1. lfd2 dl, (d2 -d1) should be zero. lfd2

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!