Ch. 5.7: Keep a Running Total Flashcards
1
Q
What is a running total?
A
A running total is a sum of numbers that accumulates with each iteration of a loop. The variable used to keep the running total is called an accumulator.
2
Q
What is an accumulator?
A
It is often said that the loop keeps a running total because it accumulates the total as it reads each number in the series.