Write a partial c class definition not implementation that


Question: Suppose a Date class that stores a calendar date such as November 20, 2011.

Suppose two possible implementations of this class: 1. by storing the day, month, and year; and 2. by storing the number of days since January 1, 1900.

Can you explain why an implement at might or prefer the second version? How does the choice affect the user of the class?

Program: Write a partial C++ class definition not implementation that contains the public interface of the Date class described in Exercise R9.2.

Declare 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 between this date and another.

Pay attention to const. You do not need to add the private section or the method implementations.

Can you show me how to write a proper code for this problem and how to complete it. Thanks in advance.

Request for Solution File

Ask an Expert for Answer!!
C/C++ Programming: Write a partial c class definition not implementation that
Reference No:- TGS0960592

Expected delivery within 24 Hours