Question: C++ Calandar A default constructor that initializes a date object to 01-01-1900 A class constructor that initializes a date object to a correct value using

C++ Calandar

A default constructor that initializes a date object to 01-01-1900

A class constructor that initializes a date object to a correct value using three integerparameters corresponding to the desired month, day and year.

The function toString() that returns the string version of a date object. For example, applying toString() to the date 12-01-2000 produces "December 1st, 2000"

The function nextDate() that returns the successive date i.e. the new value of the date object. For example, applying nextDate() to the date 12-31-2000 produces a new date: 01-01-2001

Take into account if the year is a leap year or not. A leap year is: (1) divisible by 400 or (2) divisible by 4 and not divisible by 100.

The function compareDates() that checks if the date of interest is before, after or equal to the argument date.

All of this done in Calandar.h, Calendar.cpp and TestCalendar.cpp

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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!