Answered You can hire a professional tutor to get the answer.

QUESTION

Modify the Date class you wrote for Lab1_Ex1 Date Class (fr. Programming Challenge 1 of Chapter 13). The class should implement the following...

Modify the Date class you wrote for Lab1_Ex1 Date Class (fr. Programming Challenge 1 of Chapter 13). The class should implement the following exception classes:InvalidDay Throw when an invalid day (< 1 or > monthEnds[m]) is passed to the class.InvalidMonth Throw when an invalid month (< 1 or > 12) is passed to the class.Write a user interface application to allow user to enter different scenario of the user input date data:Enter the Date as 6 30 2014: 1 30 2014January 30 2014Enter the Date as 6 30 2014: -3 30 1200Error: -3 is an invalid value for the Date's month.Enter the Date as 6 30 2014: 3 32 2014Error: 32 is an invalid value for the Date's day.Enter the Date as 6 30 2014: 1 2 -200January 2 200 B.C.Enter the Date as 6 30 2014:After the exception is thown and catched, the application have to continue to run.You may set a sentinel value for the loop as the year 2050.Starter: lab9_ex1_starter.cpp (a working lab1_ex1.cpp).Submit: lab9_ex1.cpp

Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question