Part 1: Draw a UML diagram for the class Two Dim Operations Part 2: Write the Class Two Dim Operations. The class will include the following methods: · get Total. This method should accept a two-dimensional array as its argument and return the total of all the values in the array. Get Average. This method should accept a two-dimensional array as its argument and return the average of all the values in the array. Get Row Total. This method should accept a two-dimensional array as its first argument and an integer as its second argument. The second argument should be the subscript of a row in the array. The method should return the total of the values in the specified row. Get Column Total. This method should accept a two-dimensional array as its argument and an integer as its second argument. The second argument should be the subscript of a column a in the array. The method should return the total of the values in the specified column. Get Highest In Row. This method should accept a two-dimensional array as its first argument as its argument and an integer as its second argument. The second argument should be the subscript of a row in the array. The method should return the highest value in the specified row of the array and the subscript of the lowest value. Get Lowest In Row. This method should accept a two-dimensional array as its first argument as its argument and an integer as its second argument. The second argument should be the subscript of a row in the array. The method should return the lowest value in the specified row of the array and the subscript of the highest value. Part 3: Write the TestOperations.java program. This program will create a two-dimensional array sales that holds annual sales by quarter and store branch. The column elements in sales array will hold the quarters (4 quarters in a year) and row elements will hold stores (number of store branches will be determined by the user).
1. Users will enter the sales data in the sales array
2. Input validation: Number of store locations between 3 – 10
3. Input validation: Sale value between (100 - 200)
4. The program will display a menu
The menu includes the following options
1. Annual total sale by all stores
2. Annual average sale by all stores
3. Total annual sales for a given store
4. Total annual sales for a given quarter
5. Highest sale and quarter for a given store
6. Lowest sale and quarter for a given store