Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Program is giving me issues with the exception classes and from my understanding

ID: 3665858 • Letter: P

Question

Program is giving me issues with the exception classes and from my understanding exception classes are eaiser to use then normal classes. Need help with a C++ program and correct syntax along with output.

Write a program that prompts the user to enter a person’s date of birth in numeric form such as 8-27-1980. The program then outputs the date of birth in the form: August 27, 1980. Your program must contain at least two exception classes: invalidDay and invalidMonth. If the user enters an invalid value for day, then the program should throw and catch an invalidDay object. Similar conventions for the invalid values of month and year. (Note that your program must handle a leap year.)

Explanation / Answer

#include #include #include using namespace std; int main() { int day,month, year; try { coutmonth>>day>>year; cout