Exercise : 2.46. Instructions: Divide two numbers carefully

  • Find and open the CarefulDivide Java program in the exercises2 package.
  • Prompt the user for an integer numerator and denominator
  • Compute the integer quotient of the inputs.
  • However, if the denominator is 0, do not print the quotient. Instead, produce a suitable message about the result being undefined.