Question: 1. Date Design a class called Date. The class should store a date in three integers: month, day, and year. There should be member functions

1. Date

Design a class called Date. The class should store a date in three integers: month, day, and year. There should be member functions to print the date in the following forms:

12/25/2018

December 25, 2018

25 December 2018

Demonstrate the class by writing a complete program implementing it.

Input Validation: Do not accept values for the day greater than 31 or less than 1. Do not accept values for the monnth greater than 12 or less than 1.

*This is in C++ language and needs to be compatible with visual studio. Thank you so much!

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!