Computer science assignment help

computer science


class dateType


void setDate(int month, int day, int year);

//Function to set the date. //The member variables dMonth, dDay, and dyear are set //according to the parameters. I/Postcondition: dMonth = month; dDay = day; dYear = year

int getDay() const;

//Function to return the day. //Postcondition: The value of dDay is returned.

int getMonth() const;

//Function to return the month. //Postcondition: The value of dMonth is returned.

int getYear() const;

//Function to return the year. //Postcondition: The value of dYear is returned.

void printDate() const;

//Function to output the date in the form mm-dd-yyyy.

dateType (int month = 1, int day = 1, int year = 1900);

//Constructor to set the date //The member variables dMonth, dDay, and dYear are set //according to the parameters. //Postcondition: dMonth = month; dDay = day; dYear = year. If // no values are specified, the default values are used to // initialize the member variables.


int Month; //variable to store the month int dDay; //variable to store the day int dYear; //variable to store the year


Related Questions in computer science category

The ready solutions purchased from Library are already used solutions. Please do not submit them directly as it may lead to plagiarism. Once paid, the solution file download link will be sent to your provided email. Please either use them for learning purpose or re-write them in your own language. In case if you haven't get the email, do let us know via chat support.