1. Add a method to the class OurMath, as given, that performs integer division and throws a DivisionByZeroException, as described. 2. Add statements to the driver given to test the method you defined...


1. Add a method to the class OurMath, as given, that performs integer division and throws a DivisionByZeroException, as described.


2. Add statements to the driver given to test the method you defined for the previous exercise.


3. Design and create a class UserData whose methods provide a client with valid integers and valid real numbers. Use Scanner to read input data from a user. Handle the possible exceptions to guarantee the validity of the data, have the user replace any invalid data, and finally return the validated data to the client.



May 18, 2022
SOLUTION.PDF

Get Answer To This Question

Submit New Assignment

Copy and Paste Your Assignment Here