Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

( Date Class) Create a class called Date that includes three pieces of informati

ID: 3614547 • Letter: #

Question

(Date Class) Create a class calledDate that includes three pieces of information as datamembersa month (type int), a day (type int) and ayear (type int). Your class should have a constructor withthree parameters that uses the parameters to initialize the threedata members. For the purpose of this exercise, assume that thevalues provided for the year and day are correct, but ensure thatthe month value is in the range 1-12; if it is not, set the monthto 1. Provide a set and a get function for each data member.Provide a member function displayDate that displays themonth, day and year separated by forward slashes (/).Write a test program that demonstrates class Date'scapabilities.

Ensure the day is in the valid range basedon the month and year information.

for example if date is 31 it would not be vaildfor febuary because feubary has 28 or 29 days. Make it a valid datefor what ever is entered.

Explanation / Answer

please rate - thanks hope this gets you started #include using namespace std; bool validdate(int &,int,int); int leap(int); class Date { private: int month,day,year; public: Date(int m, int d, int y) { month=m; day=d; year=y;} void Date::printdate() { cout