Question: THIS IS A C++programm 1. Date class Implement a Date class that has the following private member variables: month of type i nt day of
THIS IS A C++programm













![your program: const int NUM DATES 4 string dateArray [NUM DATES] ("02/12/2017",](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f4eb976f291_12666f4eb96e6192.jpg)

1. Date class Implement a Date class that has the following private member variables: month of type i nt day of type int year of type int and the following public member functions: set (month day year mutator that sets the variables month day and year to the parameter values overloaded relational operator. (d1 d2) is true if and only if date d2 comes after date d1 chronologically. For example, 2017) (3/9/2017) overloaded relational operator. (d1 d2) is true if and only if date d2 is equal to dl overloaded relational operator. (d1 d2) is true if and only if (dl d2) is true or (d1 d2) is true print Prints the date in the format month/day/year. For example, 3/9/2017. Do not write a constructor. 2. Driver for the Date class (in main function) For consistency in the submissions to make the grading task more efficient, copy and paste this code into your program: const int NUM DATES 4 string dateArray [NUM DATES] ("02/12/2017", "02/12/2018 "02/13/2017 "03/12/2017"); Driver for the Date class 1. Date class Implement a Date class that has the following private member variables: month of type i nt day of type int year of type int and the following public member functions: set (month day year mutator that sets the variables month day and year to the parameter values overloaded relational operator. (d1 d2) is true if and only if date d2 comes after date d1 chronologically. For example, 2017) (3/9/2017) overloaded relational operator. (d1 d2) is true if and only if date d2 is equal to dl overloaded relational operator. (d1 d2) is true if and only if (dl d2) is true or (d1 d2) is true print Prints the date in the format month/day/year. For example, 3/9/2017. Do not write a constructor. 2. Driver for the Date class (in main function) For consistency in the submissions to make the grading task more efficient, copy and paste this code into your program: const int NUM DATES 4 string dateArray [NUM DATES] ("02/12/2017", "02/12/2018 "02/13/2017 "03/12/2017"); Driver for the Date class
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
