The attached MiniCalc application was designed to perform basic math calculations: +, -, *, /. However, in its present form, this application needs some improvements. 1. Test all operators with the values 8 and 2 to make sure it works as expected. 2. Test the program with 99999 + 99999. This should raise a '[url removed, login to view]’ exception. 3. Modify the code to catch and handle the exception so that the user can continue. KEEP the declarations of FirstNum and SecondNum as short. 4. Test the program with ‘9 divide 0’. The result shows ‘infinity’. Actually, the calculation should raise an exception ‘[url removed, login to view]’. Modify the program so that the user input is validated before the divide operation is performed. For a divide by zero, modify the program to raise an exception, then add the code to handle the exception. 5. Try the test (99 * 999). You should get a '[url removed, login to view]’ exception. Fix the problem to handle the exception. 6. Now test the '-' operator using the following test cases: (1) variable1 = 32000 and variable2 = -767 and (2) variable1 = 32000 and variable2 = -768. For the first test case, the result should be 32767. For the second test case, you should get an exception. Explain what is different from the first case and fix the problem to handle the exception. 7. Lastly and most importantly I need a user-friendly interface to be created to guide the user after the exceptions are handled. Requirements: Error free program and 2-4 paragraphs explaining the issues. Please note: I will also require some other questions answered completely for a debugging scenario. It is not too difficult. The questions will be posted to the selected coder.
1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done. 2) I need an error free program and for you to tell me what is different from the first case.
Visual Basic .NET 2003 (VB.NET '03)