Define a two-dimensional array named matrix of 4 rows and 3 col-umns of type double such that the first row is initialized to 2.5, 3.2, 6.0; the second row is initialized to 5.5, 7.5, 12.6; the third row is initialized to 11.25, 16.85, 13.45; and the fourth row is initialized to 8.75, 35.65, 19.45. 40) Suppose that array matrix is as defined in Exercise 39. Write C++ statements to accomplish the following: a.Input numbers in the first row of matrix. b.Output the contents of the last column of matrix. c.Output the contents of the first row and last column element of matrix. d.Add 13.6 to the last row and last column element of matrix.
39) Define a two-dimensional array named matrix of 4 rows and 3 col-umns of type double such that the first row is initialized to 2.5, 3.2, 6.0; the second row is initialized to 5.5, 7.5, 12.6; the third row is initialized to 11.25, 16.85, 13.45; and the fourth row is initialized to 8.75, 35.65, 19.45.
40) Suppose that array matrix is as defined in Exercise 39. Write C++ statements to accomplish the following:
a.Input numbers in the first row of matrix.
b.Output the contents of the last column of matrix.
c.Output the contents of the first row and last column element of matrix.
d.Add 13.6 to the last row and last column element of matrix.
Please answer question 40
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 2 images