Question: JAVA****You must create - InvalidDayExcep and InvalidMonthExcep classes in addition to the test driver program. Use try/catch in your code. OUTPUT shown below..... Sample Run
JAVA****You must create - InvalidDayExcep and InvalidMonthExcep classes in addition to the test driver program. Use try/catch in your code.
OUTPUT shown below.....


Sample Run 1: Enter birth year: 1966 Enter month number 14 The value of day must be between 1 and 12. Enter month number: 8 Enter birth day: 45 Day must be between 1 and 31 Enter birth day: 30 Birth Day: August 30, 1966 Sample Run 2: not a leap year Enter birth year: 2001 Enter month number: 2 Enter birth day: 29 Day must be between 1 and 28 Enter birth day: 18 Birth Day: February 18, 2001
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
