Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

(java:arrays): modify program for assignment 8 that will input 2 two dimension a

ID: 3626151 • Letter: #

Question

(java:arrays): modify program for assignment 8 that will input 2 two dimension arrays. the first array is to have 2 rows and 6 columns & second array is to have 6 rows & 2 columns. your program is to multiply the 2 arrays together & output the product array. the 12 array elements for each array are in row-column order in the files twoDimensionArray1.txt and twoDimensionArray2.txt. sample: array1 equals
1.1 1.2 1.3 1.4 1.5 1.6 product array
2.1 2.2 2.3 2.4 2.5 2.6 44.13 43.44
76.74 75.66
array2 equals
5.1 5.2
5.3 5.4
5.5 5.6
5.7 5.8
5.9 5.10
5.11 5.12
array1 X array2 equals product array






Explanation / Answer

import java.util.*; import java.io.*; public class ArrayProduct {    /**    * Print the contents of a 2D array of doubles    * @param array The array to print    */    public static void printArray(double [] [] array) {        for (int i=0; i