9.5 Programming Activity 1: Working with Two-Dimensional Arrays
In this activity, you will work with a 4-row, 20-column, two-dimensional array of integers. Specifically, you will write methods to perform the following operations:
Fill the array with random numbers between 50 and 80.
Print the array.
Set every array element of a given row to a specified value. The value is a parameter of a method.
Find the minimum value in a given column of the array. The column is a parameter of a method.
Count the number of elements of the array having a specified value. The value is a parameter of a method.
The framework for this Programming Activity will animate your algorithm so that you can check the accuracy of your code. For example, Figure 9.13
Get Java Illuminated, 5th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.