Write a program that creates a two-dimensional array initialized with test data.
ID: 3635013 • Letter: W
Question
Write a program that creates a two-dimensional array initialized with test data. Use any primitive data type of your choice. The program should also have the following methods:º getTotal. This method should accept a 2D array as its argument and rturn the total of the values in the array.
º getAverage. This method should accept a 2D array as its argument and return the average of the values in the aray.
º getRowTotal. This method should accept a 2D array as its first argument and an integer as its second argument. The second argument should be the subscript of a row in he array. The method should return the total of the values in the specified row.
º getColumtTotal. This method should accept a 2D array as its first argument and an integer as its second argument. The second argument should be the subscript of a column in he array. The method should return the total of the values in the specified column.
º getHighestInRow. This method should accept a 2D array as its first argument and an integer as its second argument. The second argument should be the subscript of a row in he array. The method should return the highest value in the specified row of the array.
º getLowestInRow. This method should accept a 2D array as its first argument and an integer as its second argument. The second argument should be the subscript of a row in he array. The method should return the lowest value in the specified row of the array.