Question: Write a program that calculates the quotient of integer division. Specification Follow this sequence: 1.Get two integers from the keyboard. 2.Pass both integers to a
Write a program that calculates the quotient of integer division.
Specification
Follow this sequence:
1.Get two integers from the keyboard.
2.Pass both integers to a method that calculates and returns the quotient.
3.Display the quotient.
Implement exception handling:
1.Catch an NumberFormatException if thrown.
2.Catch an ArithmeticException (divide by zero) if thrown.
3.Allow the user to re-enter the integers if either exception is thrown.
4.Use JOptionPane dialogs for input/output.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
