Deadline is Tommorrow
You have always gotten an answer for me pretty face.
will you be answering all three of the questions I asked?
I submitted the wrong questions the that you are doing isn't do for 3 days. I need the last and this one do first.
Testing the handling of exceptions generated by DigitalTime objects
First try to declare a DigitalTime object with bad parameters
Exception #100 encountered: Invalid Hour or Minute Value
Now try catching bad inputs to the overloaded >> operator
Please enter an invalid time to test handling that exception; 12;xx
Exception #101 encounter: Invalid characters entered to read_minute
End of Exception Handling Testing
Press any key to continue...
When running code this output below should show.
I did most of the work the files are below:
You can ask me again using "For LogicPro only" at the start of your questions like you did to get instant answers.
It will ensure that question is for me.
Please bookmark my profile page:
so you can come back and ask me a question anytime.
Remember, if you need anything else, we can continue the conversation until you’re satisfied and rate my answer as excellent. I can address follow up questions at no extra charge and I’m always here to help.
The problem is to write a new exception class named DigitalTimeException and to extend the DigitalTime class as implemented in previous assignments so that it throws exceptions of type DigitalTimeException when it encounters error conditions. We will implement these as separately compilable files (although I don't care if you separate these into library projects or not, compiling them all in a single project will be fine). You will submit four files to for this problem:
Modified DigitalTime.hModified DigitalTime.cppDigitalTimeException.hDigitalTimeException.cpp
It should include Try and Catch
the first Try/Catch should look something like this:
DigitalTime thisTest(15, 65); // Bad number of seconds
example of Main.
// Code that forces the first error goes here
// Code to handle the error
// Code that forces a second error goes here
Code to handle the first error
// Code that forces a third error goes here
//Code to handle the first error
The output will look like this below:Testing the handling of exceptions generated by DigtalTime objectsFirst try to declared a DigitalTime object with bad parametersI enter invalid minute 12:83Output will be:Exception #100 encountered: Invalid Hour of Minute ValueNow try catching bad inputs to the overloaded >> OperatorPlease enter an invalid time to test to test handling that exception: Then next I enter 12:xxOutput will be:Exception #101 encountered: Invalid characters entered to read_minuteEnd of Exception handling TestingPress any key to continue . . .
Thank you. You have be so helpful.