subject

Create a word document or text file named part3 that contains answers to the following:

1. consider the declaration in sumallarr. java: int[] arr1 = new int[max + 1];
a. how many array elements does this statement create?
b. why do we have max + 1?
c. can we just use max and have the program still work correctly?

2. before the while-loop in sumallarr. java we have i = 1.
a. why is it there?
b. can we use another variable instead?

3. the do-while loop in sumallarr. java is implemented using (++i < = max).
a. provide an alternative expression that implements the same logic.
b. what will (i++ < = max) result in?

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 22:30
Type the correct answer in the box. spell all words correctly.what kind of graph or chart does this image represent? the given image represents a (blank).
Answers: 2
question
Computers and Technology, 23.06.2019 07:30
Which option allows you to view slides on the full computer screen?
Answers: 1
question
Computers and Technology, 24.06.2019 17:40
When analyzing data sets, such as data for human heights or for human weights, a common step is to adjust the data. this can be done by normalizing to values between 0 and 1, or throwing away outliers. for this program, adjust the values by subtracting the smallest value from all the values. the input begins with an integer indicating the number of integers that follow. ex: if the input is 5 30 50 10 70 65, the output is: 20 40 0 60 55
Answers: 1
question
Computers and Technology, 24.06.2019 20:20
Write python code that prompts the user to enter his or her favorite color and assigns the user’s input to a variable named color.
Answers: 1
You know the right answer?
Create a word document or text file named part3 that contains answers to the following:

Questions
question
Mathematics, 21.02.2021 02:30
question
Mathematics, 21.02.2021 02:30
Questions on the website: 13722360