Question: write a program that takes a two dimensional array (size 3 x 4) and passes that array tomethod with the blowing heading: public static double
write a program that takes a two dimensional array (size 3 x 4) and passes that array tomethod with the blowing heading: public static double sumColumndoublelll grid, int columnlndex) This method will take two parameters "grid" and "columnindex. "grid" is the two dimensional array and "columnindex" is the column to add up Test your your method in the main program. In the main method (not in the sumColumn method) print out the original array and then prompt the user for the column they would like to see summed For example a call such as "sumColumn(theArray.2T using the data shown below would yield: 1 2 3 4 5 678 9 10 11 12 The sum of column 2 is 22 NOTE: Number rows and columns starting from "0 rather than "1"leg.Four columns would have indices 0.1.2.3 The sumColumn method should have no output. Just let it "silently" do it's job. Handle any input/output in main method
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
