Question: (PE12.7) Create a Windows application that has the functionality of a calculator and works with integral values. Allow the user to select buttons representing numeric
(PE12.7) Create a Windows application that has the functionality of a calculator and works with integral values. Allow the user to select buttons representing numeric values. If the user attempts to divide by zero, throw and handle an exception.
(PE12.8) Revise the calculator application created in Exercise #7 to enable decimal 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.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
