subject

9.5 Code practice For this exercise, use the following 2D array, which is already declared and initialized in your programming environment below. Do not rename the provided array - your program should refer to it as a.

34 38 50 44 39
42 36 40 43 44
24 31 46 40 45
43 47 35 31 26
37 28 20 36 50
Your task is to output the sum of all values in the 2D array, along with the average of all values in the 2D array, as seen in the sample run below.

Note: Be sure that your program accounts for arrays of any size, not just arrays that are 5 x 5. Your program will be tested against arrays of size n by n. It should work for any square array, not just the one shown. You should also use for loops in your program, not while loops.

Sample Run
Sum of all values: 949

Average of all values: 37.96

please help

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 19:30
Once the data center routes to the destination server that hosts the website, what's the next step in the internet process? user’s browser renders html code from destination server into web page request goes through router/model and isp request routed to nameserver and datacenter
Answers: 2
question
Computers and Technology, 23.06.2019 06:30
You have a small company and want to keep your costs low, but it is important your employees share data. which network would provide you with the most economical solution?
Answers: 1
question
Computers and Technology, 23.06.2019 10:00
Hey i just logged on and one of the moderators deleted a bunch of my answers to questions, even though the answers were right and the people it doesn't make sense but if anyone wants to talk about anything just message me lol (this is super random lol)
Answers: 1
question
Computers and Technology, 23.06.2019 12:00
What does the level 1 topic in a word outline become in powerpoint? a. first-level bullet item b. slide title c. third-level bullet item d. second-level bullet item
Answers: 1
You know the right answer?
9.5 Code practice For this exercise, use the following 2D array, which is already declared and init...
Questions
question
History, 09.12.2021 19:30
question
Mathematics, 09.12.2021 19:30
question
Mathematics, 09.12.2021 19:30
Questions on the website: 13722367