Computer science assignment help
class dateType
public:
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.
private:
int Month; //variable to store the month int dDay; //variable to store the day int dYear; //variable to store the year
};
Needs help with similar assignment?
We are available 24x7 to deliver the best services and assignment ready within 3-12 hours? PAY FOR YOUR FIRST ORDER AFTER COMPLETION..

