Modify the code to catch and handle the exception


Discuss the below:

The MiniCalc application was designed to perform basic math calculations: +, -, *, /. However, in its present form, this application needs some improvements.

Test the program with 99999 + 99999. This should raise a 'System.OverflowException' exception.

Modify the code to catch and handle the exception so that the user can continue. KEEP the declarations of FirstNum and SecondNum as short.

Try the test (99 * 999). You should get a 'System.OverflowException' exception. Fix the problem to handle the exception.

Create a user-friendly interface to guide the user after the exceptions are handled.

Attachment:- MiniCalc.zip

Solution Preview :

Prepared by a verified Expert
Visual Basic Programming: Modify the code to catch and handle the exception
Reference No:- TGS01938737

Now Priced at $25 (50% Discount)

Recommended (95%)

Rated (4.7/5)