Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Download: http://solutionzip.com/downloads/number-test-java/
- Create a Java application program that will allow the user to enter 2 integer numbers. The program will display as output the quotient and remainder when the first number is XXXXX by the second number. Use try-catch blocks to guarantee that the program’s user enters integer values. If the user enters extraneous data, the program should give an appropriate error message and have the user enter the value again. Also, the program should use a try-catch block to guarantee that the program does not crash if the second number (the divisor) is zero. An appropriate error message should print if the user tries to divide by zero.
- Download: http://solutionzip.com/downloads/number-test-java/
Advertisement
Add Comment
Please, Sign In to add comment