Question: C++ Please. I only need R9.3, I just thought posting R9.2 would help. My teacher wants me to use the member functions she gave. Thank

C++ Please. I only need R9.3, I just thought posting R9.2 would help. My teacher wants me to use the member functions she gave. Thank you.
Consider a Date class that stores a calendar date such as November 20, 2011. Consider two possible implementations of this class: one storing the day, month, and year, and another storing the number of days since January 1, 1900. Why might an implementor prefer the second version? How does the choice affect the user of the class? R9.2 Write a partial C++ class definition that contains the public interface of the Date class described in ExerciseR9.2. Supply member functions for setting the date to a particular year, month, and day, for advancing the date by a given number of days, and for finding the number of days betweein this date and another. Pay attention to const. R9.3 Implement the following member functions Date: Date (int year, int month, int day): void Date::advance_days (int days); int Date::difference_in_days(Date d) const; for the private data members, you may want to use the second method described in r9.2 Useful link: http://www.cplusplus.com/reference/ctime/tm/
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
