# Programming Try-Catch Problem

Write a method that will perform the a division operation (divide by) on the numbers passed to it in two variables (numerator, denominator) and outputs the results. Use a try-catch pair to output an error message if the illegal operation of divide by 0 occurs.

© BrainMass Inc. brainmass.com October 10, 2019, 5:07 am ad1c9bdddfhttps://brainmass.com/computer-science/programming-language-theory/programming-try-catch-problem-493369

#### Solution Preview

In this example, I created a divide method that takes 2 values (numerator and denominator), and will take the quotient of the two and returns the quotient, To inform the ...

#### Solution Summary

The solution contains the complete steps to arrive at the answer.

$2.19