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
PIT_PIT [208]
3 years ago
10

Assume you are given an int variable named sum and a 2-dimensional array of ints that has been created and assigned to a2d. Writ

e some statements that compute the sum of all the elements in the entire 2-dimensional array and assign the value to sum.
Computers and Technology
1 answer:
MatroZZZ [7]3 years ago
3 0

Answer:

array_2d = [[7, 20],[13, 4],[25, 679]]

total = 0

for row in array_2d:

   total += sum(row)

print(total)

Explanation:

* The code is in Python.

Since sum() is a built-in function in Python,  I used <em>total</em> instead.

- Create a <u>for loop</u> that iterates through the 2d array, visits each row

- Add the values of the element in each row - using <em>sum()</em> function - to the <em>total</em> variable

- When the loop is done, print the <em>total</em>  

You might be interested in
When replacing a system board in a laptop, which feature is a must?
Sphinxa [80]
I would use a dual core Becuase a quad can be too space consuming and it can overheat the computers software
6 0
3 years ago
You resurrected an old worksheet. It appears to contain most of the information that you need, but not all of it. Which step sho
shtirl [24]

Answer:

a)

Explanation:

Since the worksheet contains most of the data that you need, there is a decent possibility that it also contains the data that you are missing. Therefore, you should check for data you have previously hidden. Sometimes, some data in a worksheet may become irrelevant in a given moment, and instead of deleting it since it may be useful later most people tend to make that data hidden. So checking for previously hidden data may be the best solution in this scenario.

7 0
3 years ago
Knowledge of HTML and CSS is considered essential for the job of a(n)
Ira Lisetskai [31]
I'm not sure but I think d. Webmaster
8 0
3 years ago
3. Of the following pieces of information in a document, for which would you most likely insert a mail merge field? A. First nam
lara [203]
I would suggest the answer would be both A and D, mail merge is used to specify different field for different recipients. 
8 0
4 years ago
Read 2 more answers
How will I go about conducting the investigation on fake news
Leno4ka [110]

Answer:

You can begin your report, and write about CNN, BBC, or any other liberal news network.

Explanation:

5 0
3 years ago
Other questions:
  • By default, only the ________ options are allowed when the worksheet is protected.
    11·1 answer
  • How can an installation be a tool for community building?
    9·1 answer
  • Outline the things that Mccann needs to do right away
    13·1 answer
  • When you evaluate the use of digital media, how has it affected the newspaper business? The rise of digital media has caused new
    15·1 answer
  • Complete the code to finish this program to analyze the inventory for a store that sells purses and backpacks.
    7·1 answer
  • A malicious user in your organization was able to use the Trinity Rescue Kit to change the password on a department manager's co
    7·1 answer
  • Cryptocurrencies are digital tokens that are created independently of government money, and can act as a medium of exchange and
    15·1 answer
  • System software includes all of the following except
    10·1 answer
  • What is the best way of transmitting data safely
    9·1 answer
  • What’s your tiktok? if u have one
    10·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!