Write a java program called LocateLargestElement that reads in a two dimensional
ID: 3768242 • Letter: W
Question
Write a java program called LocateLargestElement that reads in a two dimensional array and then returns the location of the largest element.
In the main() method of your program, you will ask the user to enter the values of the array one row at a time. And then yourmain() method will call the following method to determine the location of the largest element:
Notice that this method returns a one-dimensional array that contains two elements. These two elements indicate the row and column indices of the largest element in the two-dimensional array.
Design the main() method of your program such that it allows the user to re-run the program with different inputs (i.e., use a loop structure).
Here is a sample output:
Explanation / Answer
}
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.