IC211 Spring 2019
Name (Last, First): ____________________________________________________ Alpha: _____________________
Describe help received: _________________________________________________________________
HW13.java |
MyMath.java |
-v option it runs in a "verbose" mode in
which instructions and an explanation of the output get
printed. Here are some runs of the program:
~/$ java HW13 -v Enter x, k, m: 2 3 5 2^3 % 5 = 3 |
~/$ java HW13 2 3 5 3 |
Error in HW13! invalid input.
[20pts] The article "Exception Handling in C++", Bjarne Strouptrup identifies the four different "traditional" ways to handle errors which are listed below. For each approach, explain specifically why it wouldn't work to provide the error handling required in Problem 2.
handleError("k < 0 in modexp!").]