Program Description: Create the MilTime.h andMilTime.cpp files. Ensure that you do not accept an invalid amountof hours or seconds. Consider using a bool method so that you donot use cout statements within your MilTime class. You will havetwo exceptions to throw: BadHour and BadSeconds. Throw theexceptions instead of using bool methods for setting values.Demonstrate the testing of your program by creating a main.cpptesting program. See example output below.
Specific Requirements:
Create exception classes for both BadHour and BadSeconds thateach have a private variable to hold the bad data, along with anyneeded methods.
Throw BadHour if the #### format is invalid (outside of therange
OR
OR