Complete each statement regarding the following pseudocode, which sums a set of numbers. a. The accumulator for

Question:

Complete each statement regarding the following pseudocode, which sums a set of numbers. 

Declare A As Integer Declare B As Integer Declare N As Integer Set A = 0 For (B %3D 1; В «- N; B++) В - Set A = A + (2 * B - 1) Set B = B + 1 End For Write A

a. The accumulator for this program is the variable ____________.

b. The counter variable for this program is ____________.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question

Prelude To Programming

ISBN: 9780133741636

6th Edition

Authors: Stewart Venit, Elizabeth Drake

Question Posted: