Question: Write a Java program that calculates the sum of a variable sized matrix using a two dimensional array. (ArraySum.java) The user should provide the number

 Write a Java program that calculates the sum of a variable

Write a Java program that calculates the sum of a variable sized matrix using a two dimensional array. (ArraySum.java) The user should provide the number of rows and columns Test multiple user inputs (3 times 2, 4 times 4, 6 times 2, etc) A sum should be created for each row, each column, and the total for the matrix Ex.: How big would you like your matrix? Rows - ? 3 Columns -? 2 Please enter your row 1? Column 1 - 3 Column 2 - 4 Please enter your row 2? Column 1 - 7 Column 2 - 40 Please enter your row 3? Column 1 - 20 Column 2 - 12 Your total for row 1 is -7 Your total for row 2 is - 47 Your total for row 3 is -32 Your total for column 1 is - 30 Your total for column 2 is -56 Your total for the 3 times 2 matrix is 86

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!