Question: C++ Programming Hi , Can you please help me to write this C++ program, the .cpp and .h file. Create a Semester class (both the
C++ Programming
Hi , Can you please help me to write this C++ program, the .cpp and .h file. Create a Semester class (both the .h and the .cpp ) A Semester is a data type with information in it about one school semester. Create a class Semester with the following three member variables:
a semester name (Example: Fall 2017) a Date instance for the start date of the semester a Date instance for the end date of the semester
The Semester class should have the following member functions 1. Create a constructor that: accepts three arguments, the semester name, the start Date and the end Date. Use default values for all the parameters in the constructor 2. Overload the << operator for this class Have it output the semester name and dates in a manner similar to this: Semester: Fall 2017 (09/03/2017-12/12/2017) 3. Overload the >> operator for this class o Have the >> operator accept input for the Semester name, start date and end date. You can choose the best formatting. 4. Create get and set functions for each member variable DO NOT recreate the Date class here reuse code as appropriate.
Please, include and follow all the steps that is written. Again, it's C++
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
