subject
Computers and Technology, 12.04.2021 17:00 Need1ng

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

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 18:00
Assume that you have an array of integers named a. which of these code segments print the same results? int i = 1; while(i < a.length) { system.out.println(a[i]); i++; } int i; for (i = 0; i < a.length; i++) { system.out.println(a[i]); } for (int i : a) { system.out.println(i); } i and ii only ii and iii only i and iii only all three print the same results. all three print different results.
Answers: 3
question
Computers and Technology, 23.06.2019 06:00
What makes myhexadecimalnumber a child of mynumber? which methods does myhexadecimalnumber inherit directly from the mynumber class? what can an instance of the mynumber class do? what can an instance of the myhexadecimalnumber class do? which methods are overridden? why are they overridden? how many examples of overloading are there? why was this done? where is the super keyword used? what is it doing? why isn’t the incoming value set immediately in the second myhexadecimalnumber constructor? how many examples can you find of an inherited method being called?
Answers: 1
question
Computers and Technology, 23.06.2019 06:30
When early motion pictures played in movie theaters, they were often accompanied by live organ or piano music. which of the following are the most likely reasons that this happened? (select all that apply). the music was provided to distract audience members from the loud sounds made when filmstrips were changed. the music accompanied the movies because the movies were silent and audiences were used to hearing music during plays in theaters. the music usually was played before, and sometimes after the movie, as an alternative form of entertainment. the music viewers to interpret the dramatic action in the films.
Answers: 2
question
Computers and Technology, 23.06.2019 13:50
Explain how email technologies enable the exchange of messages between users. find out the typical parts of an email address and explain each part.
Answers: 1
You know the right answer?
For this exercise, use the following 2D array, which is already declared and initialized in your pro...
Questions
question
Mathematics, 17.12.2020 21:50
question
Physics, 17.12.2020 21:50
question
History, 17.12.2020 21:50
question
Mathematics, 17.12.2020 21:50
question
Mathematics, 17.12.2020 21:50
question
Mathematics, 17.12.2020 21:50
Questions on the website: 13722359