Question: java programming language Lab Goal : This lab was designed to teach you more about nested loops and matrices. . Lab Description : Create a

 java programming language Lab Goal : This lab was designed to

java programming language

Lab Goal : This lab was designed to teach you more about nested loops and matrices. . 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. Files Needed :: Grid.java GridRunner.java Sample Output : a 7 a xa x x x a cbx a 7 a a 7 a x 2 9 x b7c79a 92 c9ba 7 x 9 9 ac C x 27 c 2 bbc x 9 a 7 7 7 x x 6 x x 7 x 7 9 ba ca 2 2 7 9 xb 7 a cccc a a 7 a a 99 b 2 2 a b 72 x a 7 2 x a 7 b xa 9 ca 2 929 a b c 29 a b 99 9x cb9CCCXC 9 x 7 bac 27 bb 29x c7cxbcbc72 7 2 2 6 9 x 9 x x 2 x a c 7 bb 7 2 2 2 xc7c 2 2 x 9 x 2 x 7 a b xb x 29 C x 2 7 b b ba a 97 cc 9 b b b xa b b xcc 2 c 7 2 C 97 a 7 a xbaca 9 2 2 2 x a c 7 a xx 9 9a c 7 b a 7 c ba 7 2 2 a c b b 7 7 b 9 a 2 2 2 2 99cb 7 b 2 c b c 27 a a 9 cxba a a b c x 7 9 b xa c 7 a a 2 ca a 77 a 7 x bb 2 c b 2 7 x 7 2 2 a 7 x 7 c 70 X 97 a b c 77 ba 7 b 2 x C 99 x b ba ba ba 9 2 b x 2 x x 9b a ccc 72 cx b x 79 a a b 2 2 a 9 a --debugging code to help see if the algorithm is working- --these println 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. Page 1 / 2 + Screenshot

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!