Question: Make for c++ . Date Design a class called Date. The class should store a date in three integers: month, day, and year. There should
. 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 2/25/2014 December 25,2014 25 December 2014 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 month greater than 12 or less than 1 Make sure that: Class declarations are stored in their own header file. Use Date.h for the class specification file, with an.h extention. The member function definitions for Date class should be defined in the Date.cpp file, with cpp extention. What to turn in: 1. Date.cpp & Date. h
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
