Program A. Develop a program containing 4 separate Java methods to perform the following on a one-dimensional integer array LIST of dimension N:
- Determine (i.e. "return") the highest value in LIST.
- Determine (i.e. "return") the lowest value in LIST.
- Determine (i.e. "return") the sum of all the items in LIST.
- Determine (i.e. "return") the average of the values in LIST after eliminating the lowest and the highest values. This method should invoke some or all of the other 3 methods.
Program B. Develop a Java program that will add the corresponding elements of two 1-dimensional arrays X and Y to produce the 1-dimensional array Z. Arrays X, Y, Z have the same dimension [M].
NOTE: In the above programs, you will need to have the user input the dimensions of the respective arrays before execution of the methods. Also, output the results of all computations.