Question: Set RSIZE to 5 . Set CSIZE to 7 . Write a program that creates a matrix of RSIZE rows by CSIZE columns of numeric

Set RSIZE to 5. Set CSIZE to 7. Write a program that creates a matrix of RSIZE rows by CSIZE columns of numeric elements. Write a nested for loop that stores the numbers from 1 to RSIZE*CSIZE in the matrix. After storing the values, calculate the sum of all the values in the array and display the sum.
Modify the program you wrote for Problem 1 such that it adds a User given number to all elements of the matrix first, and then displays the sum of all elements.
Modify the program you wrote for Problem 2 such that it multiplies a User given number to all elements of the matrix first, and then displays the sum of all elements.
Modify the program you wrote for Problem 3 such that it exponentiates a User given power to all elements of the matrix first, and then displays the sum of all elements.
Modify the Program you wrote for Problem 4 to ask the User for a row number. Display the row number of the matrix.
Modify the Program you wrote for Problem 4 to ask the User for a column number. Display the column number of the matrix.
Modify the Program you wrote for Problem 4 to ask the User for a row and a column number. Display the element of the matrix.
Modify the Program you wrote for Problem 7 to loop asking for a row and column number and displaying the element, until the user enters in -1 for the row number.

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 Programming Questions!