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

#include #include using namespace std; // class declaration class Date { private

ID: 3695439 • Letter: #

Question

#include #include using namespace std; // class declaration class Date { private: int month; int day; int year; public: Date(int = 7, int = 4, int = 2001); // constructor Date___________ (int): // overload the + operator void showdate(); //member function to display a date }; //implementation section Date Date(int mm, int dd, int yyyy) { month = mm; day = dd; year = yyyy; } Date Date operator+(int days) { Date temp; // a temporary date to store the result_________ = day + days; // add days temp.month = month; temp.year = year; while (temp.day > 30) // now adjust the months { temp.month++; temp.day-=30; } while (temp.month > 12) // adjust the years {___________; temp.month-=12; } return temp; // the values in temp are returned } void Date showdate() { cout

Explanation / Answer

1. Date operator+(int); // to overload operator +

2. temp.day=day+days;

3.temp.year=temp.year+1;