Question: C# project 12 Revise the calculator application created in Exercise #7 to enable deci- mal values to be entered. Recall that an exception is not
C# project 12 Revise the calculator application created in Exercise #7 to enable deci- mal values to be entered. Recall that an exception is not automatically thrown by the CLR when the divisor operand is a non-integral value. Create a custom exception class that can be thrown if division by zero is attempted. If the divisor becomes zero, instead of doing the division, display a message indicating that division by zero is not possible. EXERCISE 7 Create a Windows application that has the functionality of a calculator and works with integral values. Allow the user to select buttons repre- senting numeric values. If the user attempts to divide by zero, throw and handle an exception.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
