Question 1. #include ciostream> #include comanip> using namespace std N class de
ID: 3695443 • Letter: Q
Question
Question 1. #include ciostream> #include comanip> using namespace std N class declaration class Date private: int month public: Date(int = 7, int 4, int“2001); int day int year Date void showdate0: //constructor .. e, . (int): l overload the+operator (int); l member function to display a date limplementation section Date::Date(int mm, int dd, int yyyy) month, mm; day a dd; year yyyy. Date Date:operator+int days) Il a temporary date to store the result //add days W now adjust the months Date temp: -=day + days, temp.month month temp. year = year, while (temp.day>30) temp.month++ tempday -30 while (temp.month > 12) W adjust the years temp-month-= 12; return temp; l the values in temp are retumed void Date: showdate0 cout ce setfillço)Explanation / Answer
Here i am just filling the fill in the blanks in the order of going down to pages.
Q1).
1) Date operator+(int);
2) temp.day = day + days;
3) temp.year++;
q2).
1) float addreal(Complex &a, Complex &b)
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.