Question: I need the C++ code for this assignment The Date class has the following public member functions: Date (); //Constructor should initialize date to 12000

I need the C++ code for this assignment
 I need the C++ code for this assignment The Date class
has the following public member functions: Date (); //Constructor should initialize date
to 12000 void setDate (int, int, int); void getDate (int \&, int

The Date class has the following public member functions: Date (); //Constructor should initialize date to 12000 void setDate (int, int, int); void getDate (int \&, int \&, int \&) const; void displayNUM() const; void displaySTD() const; void displayINT() const; Inside of the SetDate () function, below, do NOT accept values for the day greater than 31 or less than1, and do NOT accept values for the month greater than 12 or less than 1 . For bad input, set the day and the month to 0. The Date class also has a private member function, get Mon thName (). This function is a value return function with no parameter passed in. It returns the name of the month as a string. This function should be call in both dispal YSTD() and displayINT () functions to show the name of the month. string getMonthName() const: In the getMonthName (), You can use a switch statement on the month to get the name of each month and return the name: switch (month) \& case 1: return "January"; case 2: return "February"; II.. Finish the rest by yourself Note: copy/paste your output at the end of program within a pair of comment symbols (/ and * / ) There is a one part laboratory for designing classes. You will be required to submit to Blackboard one C++ file: LabDesignclass FirstNameLastName. cpp. The code in the file must include your name, the course and the file name in comments. /l 11 Nam: Lucinda A. Jackson // Class/Section: csC 260L-01 /1 Eile Name: LabDesignClassEirstNameLastName. opp f/ Program description: write detailed description here 11 Design a class called Date. The class should store a date in three integers in its private part: month, day and year. There should be member functions to print the date in the following forms: Implement the class and test the class using the main() shown below. Minclude ciostreans using nuecpace std; Int main( ) I Date Myoate, Tedny? Int Not, par, Yeaf, cout 2e - Input Month, Day, Yeer i: cin poli $3 bay YeAl; Myoute, seroete(mos, pay. if4e): Myoate.displaymari: cont ke andi. Today,iefolate 10,1, 2ee ) i Tedwedisplayinic. Tesay.dinplosto(?) cont te endi; foday. Sefoete oken, RaW, Yeany? retwin of include cinMOMDAY YEAR; MyDate, setDate(MON, DAY, YEAR); MyDate.displaynuM(); cout endl; Today-setDate (10,1,1946); Today-displayinT(); Today.displaysto(); cout \& end1; Today-getDate (WOr, DAY, YEAR); cout MOW - DAY YEAR end1; neturn o; 13 WIIIIIIIIIIIIIIIIIIIIIIIII/I/III/I/I/I Class functions implementation

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Heres the C code for the Date class based on your assignment cpp include include using namespace std class Date private int month day year string getM... View full answer

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!