//For complete quesions check the attachment//

 

 

The following algorithm prints the sum of the 5 consecutive integers starting at 1:

 

Write the Line number from the above program that best applies to each of the statements below.  A Line could be used more than once but only one Line can be used per question.  (.25 points) each)

 

1)      _____  Accumulate the sum of consecutive integers?

 

2)      _____  Assigns the initial value to variable sum?

 

3)      _____  Determines the starting integer to be summed?

 

4)      _____  Increments the value of variable num to the next consecutive integer?

 

5)      _____  Tests the condition that terminates the loop?

 

6)      _____  Causes the condition to become false when the loop is processed one more

                  time?

 

7)      _____  Causes the condition to be true the first time through the loop?

 

8)      _____  Marks the top of the loop?

 

9)      _____  Marks the bottom of the loop?

 

10)  _____  Displays the result of the variable sum?

 

 

  • 12 years ago
A+ Answers - Most Economical & Accurate - Expert solution
NOT RATED

Purchase the answer to view it

blurred-text
  • attachment
    solution-2060.doc