Question: C++: Problem Description: Design a class called Date . The class should store a date in three integers: month, day, and year. Create the necessary

C++:

Problem Description:

Design a class called Date. The class should store a date in three integers: month, day, and year.

Create the necessary set and get methods.

Design member functions to return the date as a string in the following formats:

12/25/2012

December 25, 2012

25 December 2012

Input Validation:

Do not accept values for day greater than 30 or less than 1.

Do not accept values for month greater than 12 or less than 1.

Do not accept values for year greater than 2025 or less than 1900.

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!