1. Defi ne the Time class described in Chapter 7. Provide checking for time and throw exception when an invalid time is input, either from the constructor or the user.
2. Defi ne a stack class. The class should throw an exception when the stack underfl ow and overfl ow take place.
3. Defi ne a class TheException, which contains member functions for displaying messages regarding stack underfl ow and overfl ow. When overfl ow occurs, it asks for increasing the stack size. If the user says yes, it should respond by increasing the stack size. Use dynamically allocated array to implement stack.