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 10:30
Choose the best explanation for the following statement communication is symbolic
Answers: 3
question
Computers and Technology, 23.06.2019 00:00
Donna and her team of five have invented a new gadget for the science exhibition in their college. which intellectual property right will protect their invention?
Answers: 1
question
Computers and Technology, 23.06.2019 11:00
Sports and entertainment class, your goal is to increase attendance and make a profit for a game by getting your team on a winning track with total salaries less than $3,000,000
Answers: 3
question
Computers and Technology, 23.06.2019 13:30
Best laptops for college [$100-$500 range]?
Answers: 2
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
Mathematics, 26.09.2019 04:10
question
Mathematics, 26.09.2019 04:10
question
Mathematics, 26.09.2019 04:10
question
History, 26.09.2019 04:10
question
Mathematics, 26.09.2019 04:10
question
Mathematics, 26.09.2019 04:10
question
Spanish, 26.09.2019 04:10
Questions on the website: 13722363