Question: make a C++ program Declare a two-dimensional array named matrix composed of 4 rows and 3 columns of type real. Initialize the first row with
make a C++ program
Declare a two-dimensional array named matrix composed of 4 rows and 3 columns of type real. Initialize the first row with the following values 2.5, 3.2, and 6.0; the values in the second row are 5.5, 7.5, 12.6; the third row contains the values 11.25, 16.85, 13.45; and the fourth row is initialized with the values of 8.75, 35.65, 19.45
display: Function with three input parameters, the first input parameter is the two-dimensional array, the last two parameters indicate the dimension of the array. The function should print the content of the array
Implement the statements to rewrite the first row of the array
displayColumn: Function that contains four input parameters, the first parameter is a two-dimensional array, the second and third parameters are the dimension of the array; the fourth parameter is the column that you want to print. Call your function to print the last column of the array.
displayRow: Function that contains four input parameters, the first parameter is a two-dimensional array, the second and third parameters are the dimension of the array; the fourth parameter is the row to print.
Call both functions to print the first row and the last column
Implement the instructions to rewrite placing the value of 13.6 in the last row and column of the matrix
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
