subject

For this exerciseuse 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 42 38 36 31 47 28 50 40 46 35 20 44 43 40 31 36 39 44 45 26 50 43 37 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 * 5 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 .

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 13:00
Which part of the cpu accepts data?
Answers: 1
question
Computers and Technology, 23.06.2019 17:30
When making changes to optimize part of a processor, it is often the case that speeding up one type of instruction comes at the cost of slowing down something else. for example, if we put in a complicated fast floating-point unit, that takes space, and something might have to be moved farther away from the middle to accommodate it, adding an extra cycle in delay to reach that unit. the basic amdahl's law equation does not take into account this trade-off. a. if the new fast floating-point unit speeds up floating-point operations by, on average, 2ă—, and floating-point operations take 20% of the original program's execution time, what is the overall speedup (ignoring the penalty to any other instructions)? b. now assume that speeding up the floating-point unit slowed down data cache accesses, resulting in a 1.5ă— slowdown (or 2/3 speedup). data cache accesses consume 10% of the execution time. what is the overall speedup now? c. after implementing the new floating-point operations, what percentage of execution time is spent on floating-point operations? what percentage is spent on data cache accesses?
Answers: 2
question
Computers and Technology, 24.06.2019 02:10
Aspeed limit sign that says "night" indicates the legal speed between sunset and sunrise.
Answers: 2
question
Computers and Technology, 24.06.2019 13:50
What does code do? a creates a text box that says "solid black" b creates a black border of any width c creates a black border 1 pixel wide
Answers: 1
You know the right answer?
For this exerciseuse the following 2D array, which is already declared and Initialized in your progr...
Questions
question
Mathematics, 12.08.2020 05:01
question
Engineering, 12.08.2020 05:01
question
Mathematics, 12.08.2020 05:01
question
English, 12.08.2020 05:01
question
Mathematics, 12.08.2020 05:01
question
Mathematics, 12.08.2020 05:01