Question: Write code in C++ ! The result should output as the same second picture Create DayOfYear class that has a friend function' equal'. 'equal' function

Write code in C++ !
The result should output as the same second picture
Write code in C++ ! The result should output as the same
second picture Create DayOfYear class that has a friend function' equal'. 'equal'

Create DayOfYear class that has a friend function' equal'. 'equal' function will check the equality of two dates. class DayofYear \{ public: DayOfYear(); //Initializes the date to January first. DayOfYear(int tmonth, int tday); DayOfYear(); void setMonth(int tmonth); void setDay(int tday); int getMonth(); int getDay(); friend bool equal(DayOfYear date1, DayofYear date2); private: int month; int day; Enter today's month and day : 310 Enter your birthday (month and day) : 310 Today is 3/10 Birthday is 3/10 Happy 'Birthday' To You! Enter today's month and day : 215 Enter your birthday (month and day) : 317 Today is 2/15 Birthday is 3/17 Happy 'Unbirthday' To You

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!