Question: 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

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Systems Analysis Design Questions!