
Hiep L. answered 04/28/19
Adjunct Professor at HCC - teaching C++/C#/Java/Python
Since this question sounds like an assignment, I will not be able to help with the coding itself. However, I can help with the logic you should write:
- Read the input from the user for the # of rows.
- Read the input from the user for the # of columns.
- Create an array using the entered values arr[rows, columns].
- Write a nested loop where the outer loop controls the # of rows and the inner loop controls the # of columns.
- In the inner loop, insert the random value (between 0..100) in the array[row, column]
- Write another nested loop with the same row and column controls.
- In the inner loop, have a variable saving the highest number found at the array as you loop through each array[row, column]
- Print the highest value found
- Write a third nested loop with the same row and column controls.
- In the inner loop, if the array[row, column] matches the highest number saved, print out the location (row, column)
Hope this helps.