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

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 12:00, Cocco
Which of the following does 3d animation create an illusion of on the screen? a. depth b. emotion c. length d. dialogue
Answers: 1
image
Computers and Technology, 22.06.2019 12:30, zaratayyibah
Which of the choices sean are not true when considering virus behavior
Answers: 1
image
Computers and Technology, 22.06.2019 15:10, reycaden
David is in week 3 of his current ashford course and has a paper due by monday night at midnight. he has finished everything but the concluding paragraph. as he boots up his computer to work on it, he sees a flash across the screen and then the screen goes black. he begins to panic as he tries desperately to turn the laptop back on. david should have saved his work on what kind of portable device?
Answers: 2
image
Computers and Technology, 23.06.2019 13:30, mads000
Drag the tiles to the correct boxes to complete the pairs. match the errors with their definitions. #name #value #ref when a formula produces output that is too lengthy to fit in the spreadsheet cell arrowright when you enter an invalid cell reference in a formula arrowright when you type text in cells that accept numeric data arrowright when you type in a cell reference that doesn’t exist arrowright reset next
Answers: 1