Convert the class below to
//COMP201 Project 5: Convert the class below to ADT ( addaccessors, mutators, constructors and //equals() function. All data will be private. Rewrite main() driver. Write the equals //function before refactoring to ADT and rewrite after to see the necessary changes.
#include <iostream>
usingnamespacestd;
classDayOfYear
{public:
void output( );
int month;
int day;
};
int main()
{ DayOfYear today, birthday;
cout<<“Enter today’s date:\n”;
cout<<“Enter month as a number: “;
cin>>today.month;
cout<<“Enter the day of the month: “;
cin>>today.day;
cout<<“Enter your birthday:\n”;
cout<<“Enter month as a number: “;
cin>>birthday.month;
cout<<“Enter the day of the month: “;
cin>>birthday.day;
cout<<“Today’s date is “;
today.output( );
cout<<“Your birthday is “;
birthday.output( );
if (today.month == birthday.month&&today.day == birthday.day)
cout<<“Happy Birthday!\n”;
else
cout<<“Happy Unbirthday!\n”;
return 0;
}
//Uses iostream:
voidDayOfYear::output( )
{ cout<<“month = “<< month <<“, day = “<< day <<endl;}

