Question: Using C++: Code Program 2 only Wtite a program that prompts the user to enter a person's birth date in numeric form (e.g. 8-27-1990) and
Using C++: Code Program 2 only

Wtite a program that prompts the user to enter a person's birth date in numeric form (e.g. 8-27-1990) and outputs the date of birth in the format of month day, year (e.g. August 27. 1990), Your program must work for three types of exceptions invalid day, invalid month and invalid year (year must be between 1915 and 2017). Make these as class driven exceptions Program Use one try-catch block with separate catches for the exception classes to handle errors for invalid day and month and a catch all to handle invalid year. Print the correct exception method error and have the user re-enter the error field value assume the user will enter a correct value Then print out converted date. Program 2: Use nested try-catch blocks to print the appropriate emor message fat the error in the internal try-catch block(s) Re-throw the exception and ask the user to re-enter the error field value in the outer try-catch block. Then print out the converted date
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
