subject

You are given the following segment of code: Line 1: PROCEDURE printScorePairs()
Line 2: {
Line 3: count <-- 0
Line 4: sum <-- 0
Line 5: i <-- 1
Line 6: scores <-- [73, 85, 100, 90, 64, 55]
Line 7: REPEAT UNTIL ( i > LENGTH (scores) )
Line 8: {
Line 9: sum <-- scores[i] scores[i 1]
Line 10: DISPLAY ( sum )
Line 11: i <-- i 2
Line 12: }
Line 13: }

The ABC company is thrifty when it comes to purchasing memory (also known as RAM) for its computers. Therefore, memory is of the utmost importance and all programming code needs to be optimized to use the least amount of memory possible. What modifications could be made to reduce the memory requirements without changing the overall functionality of the code?

ansver
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 06:00, kiaunarayne808
The width of a piece of rectangular land is 5m shorter rhan 1/3 of its length .find the width of the land if the length is 60m,150m.
Answers: 1
image
Computers and Technology, 22.06.2019 19:10, kaiya789
10. when you create a pivottable, you need to specify where to find the data for the pivottable. is it true
Answers: 2
image
Computers and Technology, 23.06.2019 13:30, valeriegarcia12
Select the correct answer from each drop-down menu. which types of computer networks are bigger as well as smaller than a man? a man is a network of computers that covers an area bigger than a , but smaller than a .
Answers: 1
image
Computers and Technology, 23.06.2019 16:00, CalCDanG
What is the biggest difference between section breaks and regular page breaks? section breaks are more difficult to add than page breaks. section breaks make it easier for you to view the document as an outline. section breaks allow you to have areas of the document with different formatting. section breaks are smaller than regular page breaks.
Answers: 2
You know the right answer?
You are given the following segment of code: Line 1: PROCEDURE printScorePairs()
Line 2: { <...

Questions in other subjects: