1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Ahat [919]
3 years ago
9

considering that two variables counters and accumulators are important in loop design. What would be their purpose?

Computers and Technology
1 answer:
almond37 [142]3 years ago
5 0

Answer:

Counters are used to run the loop.

Accumulators are used to calculate and store the result.

Explanation:

In loops variables counters and accumulators are very important.The counter variable is used to increase the loop or move to the next iteration.

The accumulator variable is used to calculate and store the result of an operation in the loop.

For example:-

int i=0;

int sum=0;

while(i<7)

{

     sum=sum+i;

     i++;

}

In this while loop the counter variable is i and the accumulator variable is sum.Without the counter variable is not increased the loop will keep looping over the same value of i that is 0.

In the loop the accumulator variable sum is used to calculate the sum of integers form i=0 to 6.

You might be interested in
Which of the following domain types is most trustworthy 1) .com 2) .tv 3).org 4) .edu
yKpoI14uk [10]

Answer:

.edu

Explanation:

8 0
3 years ago
Read 2 more answers
Which line of code will find the first occurrence of a three in an array?
eduard
Arr.index[3] is most likely true
5 0
2 years ago
Read 2 more answers
Which hypervisor works on older pcs without hardware virtualization support?
patriot [66]
The hypervisor which works on older PC's without hardware virtualization support is called VirtualBox. It is a software allows you to run operating systems in special environment which is called virtual machine. It means that you can run another OS without re-installing existing one.
5 0
2 years ago
Read 2 more answers
Identify the layout in which you will be able to view and edit the header and footer
sergiy2304 [10]
The answer is (c.) Print Layout

The print layout view is the default view in Microsoft Office Word upon opening the application. In a new document, to add a header and a footer, go to Insert Tab. Under the Header and Footer section, you have the option to add a header and a footer. There are built-in designs to choose from by just clicking on the drop down arrow.
6 0
3 years ago
Which activity does not allow a person to perform any work while at the shop
polet [3.4K]

Is it apprenticeship???:D

5 0
3 years ago
Other questions:
  • Which data type stores images and audio visual clips?
    9·2 answers
  • Hybrid protocol is similar to which other protocol?
    10·1 answer
  • how to answer the questions on brainly? I've typed my answer in the box but there's no submit button or whatever, and the only t
    14·2 answers
  • How can software be used to protect against hardware failures in systems that embody both? Give two examples of how software can
    14·1 answer
  • Clunker Motors Inc. is recalling all vehicles in its Extravagant line from model years 1999-2002 as well all vehicles in its Guz
    15·1 answer
  • Write an application that allows a user to enter any number of student quiz scores, as integers, until the user enters 99. If th
    5·1 answer
  • Please choose odd one out please tell fast ​
    13·2 answers
  • Convert this hexadecimal number to binary :. A07F​
    14·1 answer
  • Does The ps5 digital have a disc drive even Though ps4 games are not compatible
    6·1 answer
  • Question 9
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!