subject

2 0 3. Assume that the list of numbers listi has 10 elements. The program below is intended to compute and display the sum of the first 5 elements of listi. 12345 Line 1: il Line 2: sum + 0 Line 3: REPEAT UNTIL (i > 5) list 1 Line 4: { Line 5: sum + sum + listi[i] 2 10 Line 6: iti + 1 Line 7: } Line 8: DISPLAY (sum) colato nlatna Which change, if any, is needed for the program to work as intended? A) Line 3 should be changed to REPEAT UNTIL (i ? to B) Line 3 should be changed to REPEAT UNTIL (i > 10). is At Anan lo IS C) Lines 5 and 6 should be interchanged. D No change is needed; the program works correctly.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 04:00
Acetylene is a gas which burns rapidly on its own, and is considered highly explosive. a) true b) false
Answers: 2
question
Computers and Technology, 22.06.2019 18:40
Mariah was working on a multimedia presentation that included both video and audio files. the file was huge, and she wanted to send it to her coworker in another office. she needed to reduce the size of the file so that it could be transmitted faster. the utility she used to do this was
Answers: 2
question
Computers and Technology, 23.06.2019 13:30
Jace needs to answer a question on square roots to win a quiz. how can he use a spreadsheet to find the square root of 786? a. use the functions round and count b. create a table and chart c. use the function sqrt d. use the function now
Answers: 3
question
Computers and Technology, 23.06.2019 15:20
In a game with three frames, where will the objects on layer 1 appear? a. next to the play area b. in the middle of the game c. behind everything else d. in front of everything else
Answers: 1
You know the right answer?
2 0 3. Assume that the list of numbers listi has 10 elements. The program below is intended to compu...
Questions
question
Mathematics, 23.11.2020 19:40
question
Mathematics, 23.11.2020 19:40
question
English, 23.11.2020 19:40
question
Biology, 23.11.2020 19:40
question
Mathematics, 23.11.2020 19:40
question
Mathematics, 23.11.2020 19:40
Questions on the website: 13722367