CSC220 Lab Number 2
Due: 11:59PM, Tuesday, September 15

Download the following file:

The ExTest has a main method. Upon invocation it shows on the screen GUI for selectig methods. It reads from a two-dimensional table of integers and execute a selected binary or uniary operation on selected entries. Here are some characteristics of the program:

The tasks of this exercise are embedded in the code itself. There are four of them.

  1. Supplement the existing catch clauses in the file reading part so that the case in which the file is empty in the first line is dealt with allowing the program to continue.
  2. Modify the file reading part so that a too long line is truncated and a too short line is supplemented with extra 0 entries . Add a catch clause to deal with the case in which an entry doesn't have an integer entry (including the case when the entry is empty).
  3. Add a catch clause or any appropriate measure to deal with the case in which the divising entry is 0 for /.
  4. Add a catch clause or any appropriate measure to deal with the case in which zero or a negative value is given for log.