Question: i need the c++ code for this assignment Instructions: There is a one part laboratory for designing classes . You will be required to submit

Instructions: 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. 1/ /1 Nam: Lucinda A. Jackson // Class/Section: CSC 260L-01 // File Name: LabDesignclassFirstNameLastName.cpp 1/ Program description: write detailed description here 1/ 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. \#include M MOn is DAY S YEAR; MyOate. setDate(MON, OAY, YEAR); MyDate.displaytuM(); cout end1; Today-setDate( 10, 1, 1946); Today-displayINT(); Today, displaySTD( ); cout endl; Today-getDate (HON, DAY, YEAR); cout MON " DAY " YEAR endl; return 6 ; 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, getMonthName (). 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 dispalySTD () and displayINT () functions to show the name of the month. string getNonthName () 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) I case 1: return "January"; case 2: return "February"; 11.. . Finish the rest by yourself Note: copy/paste your output at the end of program within a pair of comment symbols (/ and * /)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
