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

THIS IS A C++programm 1. Date class Implement a Date class that

has the following private member variables: month of type i nt dayof 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 trueor (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

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

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!