1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Ira Lisetskai [31]
3 years ago
8

Write a test program that prompts the user to enter a two dimensional array and displays the location of the smallest element in

the array.
Computers and Technology
1 answer:
alexandr1967 [171]3 years ago
8 0

Answer:

def element_loc():

   is_end = 'n'

   dimen2 = []

   while is_end == 'n':

       par1 = input("Enter rows and columns: ").split(",")

       part = [int(i) for i in par1]

       dimen2. append(part)

       is_end = input("Do you want to add more rows? y/n: ")

   mini = list()

   for i in dimen2:

       mini. append(min(i))

   result = min(mini)

   row_index = mini. index(result)

   col_index = dimen2[row_index]. index(result)

   print("Row: ", row_index, "Col_index: ", col_index)

element_loc()

Explanation:

The python program solution above prompts users for the two-dimensional array and then the rows of the array are compared with the minimum value stored in another list or array. The row index and the column index are gotten from the mini and dimen2 arrays respectively and are displayed as the position of the minimum value in the two-dimensional array.

You might be interested in
Janice's onsite call is almost funny - the laser printer is spewing pages like crazy. The customer begs "Janice, stop this 4300
sineoko [7]

Answer:

C. clear the print spooler.

Explanation:

Printers are output devices that receives electronic data from a computer system and creates a hard-copy representation of the data sent. It is a peripheral device because it is not a main component of the computer system.

There are different types of printers, they are inkjet printers, laser printers, matrix dot printers, plotters etc. All printers are capable of queuing data entries meant for printing in its cache memory.

When a printer continue spewing printed pages, clear the spooler (printing job accessed by multiple users). Although reset or powering off the printer may work, it is advisable to clear the spooler first.

8 0
4 years ago
Read 2 more answers
What are some ways to accept data typed into a cell? Check all that apply.
adoni [48]

The correct answer is to press the Enter key or the Tab key.

When you are entering data into a cell in a spreadsheet there are various ways to accept the data that has been entered into a cell. Two of the ways that the data wil be accepted is to press the enter key or to press the tab key.

7 0
3 years ago
Net neutrality refers to the idea that Internet service providers (ISPs), including cable Internet and wireless carriers, should
Vedmedyk [2.9K]

Answer:

True is the right answer.

Explanation:

The term net neutrality can be defined as the principle which states that all internet service providers treat all communication channels i.e wired or wireless channels equally.

In net neutrality, there can not be any discrimination on the basis of the website, user, protocol, hardware or application.

In net neutrality, the internet service provider can not charge the user on the basis of some specific content.

Hence the most appropriate answer is true.

8 0
4 years ago
Read 2 more answers
Write a programto add two fractions and display the
klemol [59]

Explanation:

Program to add two fractions

Add two fraction a/b and c/d and print answer in simplest form.

Examples :

Input: 1/2 + 3/2

Output: 2/1

Input: 1/3 + 3/9

Output: 2/3

Input: 1/5 + 3/15

Output: 2/5

5 0
4 years ago
The _____ function is a logical function that returns a TRUE value if any of the logical conditions are true and a FALSE value i
Umnica [9.8K]

Answer:

OR

Explanation:

The OR function is a logical function that returns a TRUE value if any of the logical conditions are true and a FALSE value if all the logical conditions are FALSE.

4 0
3 years ago
Other questions:
  • Bill needs to make a presentation in which he has to represent data in the form of a pyramid. Which feature or menu option of a
    10·2 answers
  • Which process refers to starting up a computer?
    13·2 answers
  • When determining the amount of RAM necessary for a computer you wish to purchase, what should you consider?
    7·1 answer
  • Which type of memory helps in reading as well as writing data? With the help of , a computer can read as well as write or modify
    11·3 answers
  • Libby’s keyboard is not working properly, but she wants to select options and commands from the screen itself. Which peripheral
    14·1 answer
  • IfL = 4.4H and the inductive reactance of an inductor is 620 Omega find the frequency of the alternating current​
    5·1 answer
  • Is the address 7b invalid regarding cell references?
    8·1 answer
  • MOA115 Medical Records and Insurance
    6·1 answer
  • 10. When does teasing become cyberbullying?
    7·1 answer
  • Write a c program that reprints input so that no line is longer than 50 characters. Specifically, for lines less than or equal t
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!