Question: Write code in c++ only must In this assignment, you will implement the following two classes. 1. Date class Day, Month, and Year A default
Write code in c++ only must
In this assignment, you will implement the following two classes. 1. Date class
Day, Month, and Year A default and User-defined constructor
Function to setDate with month, day, and year You should validate the date ; 12/03/2021 is a valid date while 33/6/2021 is not. Hint: use the calendar to determine how many days in each month.
Function to print the date in nice format 12/03/20121 (overload cout
A member function to increment a specified date with a specified integer value. You should deal with all special cases, I mean when the day is 30 or 31. Date d1(19,6,2021) ; Date d1=d1+1; cout

In this assignment, you will implement the following two classes. 1. Date class Day, Month, and Year A default and User-defined constructor Function to setDate with month, day, and year o You should validate the date ; 12/03/2021 is a valid date while 33/6/2021 is not. Hint: use the calendar to determine how many days in each month. Function to print the date in nice format 12/03/20121 (overload cout
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
