Question
PYTHON locate the largest element.. write the following method that returns the location of the largest element in a two-dimensional array. def locateLargest(a): the return
PYTHON
locate the largest element.. write the following method that returns the location of the largest element in a two-dimensional array.
def locateLargest(a):
the return value is a one dimensional list that contains two elements. these two elements indicated the row and column indexes of the largest element in the two dimensional list. write a test program that prompts the user to enter a two dimensional list and displays the location of the largest element in the list.
PYTHON
Example: Enter the number of rows in the list: 3
enter a row: 23.5 35 2 10
enter a row: 4.5 3 45 3.5
enter a row: 35 44 5.5 11.6
the location of the largest element is at (1, 2)
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started