write a program that will multiply twodimentional arrays as follow: 1.The progra
ID: 3615565 • Letter: W
Question
write a program that will multiply twodimentional arrays as follow:1.The program should prompt the user for the dimention of the firstarray (row x coloum).
2.The program should get the values of the first array one by one.(e.g. program should display "enter value of a[1][1]= , ...etc"
3.The program should prompt the user for the dimention of thesecond array.
4.If the dimention of the second array is not compatible with thefirst array (can not multiply with), then refuse to accept thesecond array and ask the user again for the dimention of the secondarray.
5.The program should get the values of the second array one byone.
6.The program should calculate the multiplication and store theresult in third matrix (array)
7.The program should print the result of the multiplication in anorganized way.
write a program that will multiply twodimentional arrays as follow:
1.The program should prompt the user for the dimention of the firstarray (row x coloum).
2.The program should get the values of the first array one by one.(e.g. program should display "enter value of a[1][1]= , ...etc"
3.The program should prompt the user for the dimention of thesecond array.
4.If the dimention of the second array is not compatible with thefirst array (can not multiply with), then refuse to accept thesecond array and ask the user again for the dimention of the secondarray.
5.The program should get the values of the second array one byone.
6.The program should calculate the multiplication and store theresult in third matrix (array)
7.The program should print the result of the multiplication in anorganized way.
Explanation / Answer
please rate - thanks #include #include using namespace std; void input(int[][7],int,int,string); void multiplyMatrix(int[][7], int[][7],int[][7],int,int,int ); void print(int[][7],int,int,string); using namespace std; int main() { int n,m,p,t,i,j; int a[7][7],b[7][7],c[7][7]; coutn; coutm; input(a,n,m,"Enter array 1 "); do {coutt; coutp; if(t!=m) coutRelated Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.