Question: C++ functions and main functions. Ty. 1-4 Given a matrix, print out the scaled version of the matrix, where you multiple every element in the

C++ functions and main functions. Ty.
1-4 Given a matrix, print out the scaled version of the matrix, where you multiple every element in the matrix by the same numeric value. Elements should be printed by row, with a space separating elements on a row, and a newline character separating rows. Example: int scale 3 int threebythree(3113] -(e,1,2),3,4,5),(6,7,8 print_scaled matrix(threebythree, scale) This should produce the following output: 36 9 14 15 18 21 24 Signature: void print_scaled_matrix(int array[3][3],int scale) 1-5 Given two two-dimensional arrays, add them together and print the result as in 1-4 above. What relationship needs to be between the sizes of the two matrices? Example: int matrixl[3][3]-t,,2,13,4,5),(6,7,8) int matrix2[31[3] - to,e,o,12,2,2,(-5,-4,8 print_summed matrices (matrix1,matrix2) This should produce the following output: 0 1 2 567 1 3 16 Signature: void print_summed matrices(int array1[3][3],int array2[3][3])
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
