1) Write code that prints the largest element in a row of a 2D array. (It doesn't matter which row - just pick one). 2) Also write code that prints the smallest (NOT the largest) element in a column of a 2D array. (It doesn't matter which column - just pick one). 3) Finally, print the average of all of the elements in the 2D array. The 2D array should be at least 4 columns and 4 rows in size and should contain numeric data (not strings or chars or booleans). I leave the values up to you to decide. Again, you can use an RNG-type website tool as we have done in previous assignments.

Programming Logic & Design Comprehensive
9th Edition
ISBN:9781337669405
Author:FARRELL
Publisher:FARRELL
Chapter6: Arrays
Section: Chapter Questions
Problem 20RQ
icon
Related questions
Question

Need help figuring this out and putting it in c++.

1)
Write code that prints the largest element in a row of a 2D array. (It doesn't matter which row - just pick one).
2)
Also write code that prints the smallest (NOT the largest) element in a column of a 2D array. (It doesn't matter which
column - just pick one).
3)
Finally, print the average of all of the elements in the 2D array.
The 2D array should be at least 4 columns and 4 rows in size and should contain numeric data (not strings or chars or
booleans). I leave the values up to you to decide. Again, you can use an RNG-type website tool as we have done in
previous assignments.
Transcribed Image Text:1) Write code that prints the largest element in a row of a 2D array. (It doesn't matter which row - just pick one). 2) Also write code that prints the smallest (NOT the largest) element in a column of a 2D array. (It doesn't matter which column - just pick one). 3) Finally, print the average of all of the elements in the 2D array. The 2D array should be at least 4 columns and 4 rows in size and should contain numeric data (not strings or chars or booleans). I leave the values up to you to decide. Again, you can use an RNG-type website tool as we have done in previous assignments.
Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Array
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage