Date Exceptions
Modify the Date class you wrote for Programming Challenge 1 of Chapter 13 . The class should implement the following exception classes:
InvalidDay Throw when an invalid day (< 1 or > 31) is passed to the class.
InvalidMonth Throw when an invalid month (< 1 or > 12) is passed to the class.
Demonstrate the class in a driver program.
Reference:
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/2009
December 25, 2009
25 December 2009
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.
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.