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

#include using class { public private }; int { DayOfYear today, bach_birthday; c

ID: 3618515 • Letter: #

Question

#include

using

class

{

public

private

};

int

{

DayOfYear today, bach_birthday;

cout <<

today.input( );

cout <<

today.output( );

bach_birthday.set(3, 21);

cout <<

bach_birthday.output( );

today.get_day( ) == bach_birthday.get_day( ) )

cout <<

cout <<

}

//Uses iostream:

void

{

cout <<

cin >> month;

cout <<

cin >> day;

check_date( );

}

void

{

cout <<

<<

}

void

{

month = new_month;

day = new_day;

check_date();

}

void

{

{

cout <<

exit(1);

}

}

int

{

}

int

{

}

Explanation / Answer

please rate - thanks #include using namespace std; class DayOfYear { public: void input( ); void output( ); void set(int new_month, int new_day,int new_year); int leap(int year); //Precondition: new_month and new_day form a possible date. //Postcondition: The date is reset according to the arguments. int get_month( ); //Returns the month, 1 for January, 2 for February, etc. int get_day( ); //Returns the day of the month. int get_year( ); private: void check_date( ); int month; int day; int year; }; int main( ) { DayOfYear today, bach_birthday; cout