[Solved]Lab Description Create Grid Random Values Pass Array Values Randomly Load Values Grid Use Q37062709



Lab Description: Create a grid of random values. Pass in an array of values and randomly load the values into the grid. Use math random() to load the values into the matrix. Search the grid to see how many of a certain value exist in the grid. Return the largest group found out of the specified search values. Sample Output: Files Needed: a 7ax axx xacbxa7aa7ax 2 Grid.java GridRurner.java c x 27 c2bb cx9 a777 x x b x x 7x79baca2279xb7acccc 29 x c7cx bebc72722b9 x 9 9 x 2 x 7 a bxbx 29 cx 2 7bbb a c 97a 7 a x baca9 222 x ac7a 9 a 222c99 cb7 b 2 cb c2 7 a a caa7 7a7 xb b 2 cb 27 x7 22a c99 x bbab aba 9 2b x 2 x x 9 b accc72ex《 b x 7 9 a a b 2 2 a 9 a -debugging code to help see if the algorithm is working- –these printin statements can be added to the max method- a count is 70 b count is 60 c count is 61 7 count is 58 9 count is 43 x count is 58 2 count is 50 a occurs the most. a 922 b a9ab 7 a2bx a97c2a b22xca2b97 99 b979xx x c bxba92cxx7 b2aa9ccxbb 7 bc9x22x7 x occura the most. public class Grid private String lIl grid; //load vals into the rows x cols grid randomly public Grid(int rows, int cols, Stringl1 vals) //find out which of the vals occurs the most public String findMax (String1 vals) return “nothing yet”; //returns a count of how many times val occurs in the matrix private int countVals String val ) return 0; //display the gridlL public String toString() string output- return output: public class Grid private String lIl grid; //load vals into the rows x cols grid randomly public Grid(int rows, int cols, Stringl1 vals) //find out which of the vals occurs the most public String findMax (String1 vals) return “nothing yet”; //returns a count of how many times val occurs in the matrix private int countVals String val ) return 0; //display the gridlL public String toString() string output- return output: Show transcribed image text Lab Description: Create a grid of random values. Pass in an array of values and randomly load the values into the grid. Use math random() to load the values into the matrix. Search the grid to see how many of a certain value exist in the grid. Return the largest group found out of the specified search values. Sample Output: Files Needed: a 7ax axx xacbxa7aa7ax 2 Grid.java GridRurner.java c x 27 c2bb cx9 a777 x x b x x 7x79baca2279xb7acccc 29 x c7cx bebc72722b9 x 9 9 x 2 x 7 a bxbx 29 cx 2 7bbb a c 97a 7 a x baca9 222 x ac7a 9 a 222c99 cb7 b 2 cb c2 7 a a caa7 7a7 xb b 2 cb 27 x7 22a c99 x bbab aba 9 2b x 2 x x 9 b accc72ex《 b x 7 9 a a b 2 2 a 9 a -debugging code to help see if the algorithm is working- –these printin statements can be added to the max method- a count is 70 b count is 60 c count is 61 7 count is 58 9 count is 43 x count is 58 2 count is 50 a occurs the most. a 922 b a9ab 7 a2bx a97c2a b22xca2b97 99 b979xx x c bxba92cxx7 b2aa9ccxbb 7 bc9x22x7 x occura the most.
public class Grid private String lIl grid; //load vals into the rows x cols grid randomly public Grid(int rows, int cols, Stringl1 vals) //find out which of the vals occurs the most public String findMax (String1 vals) return “nothing yet”; //returns a count of how many times val occurs in the matrix private int countVals String val ) return 0; //display the gridlL public String toString() string output- return output:
public class Grid private String lIl grid; //load vals into the rows x cols grid randomly public Grid(int rows, int cols, Stringl1 vals) //find out which of the vals occurs the most public String findMax (String1 vals) return “nothing yet”; //returns a count of how many times val occurs in the matrix private int countVals String val ) return 0; //display the gridlL public String toString() string output- return output:
Expert Answer
Answer to Lab Description: Create a grid of random values. Pass in an array of values and randomly load the values into the grid. … . . .
OR

