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
What specific type of hardware card inserts into a web server that contains one or more co-processors to handle ssl/tls processi
o-na [289]
A <span>specific type of hardware card which is inserted into a web server that contains one or more co-processors to handle ssl/tls processing is 
</span>SSL/TLS Accelerator.
8 0
4 years ago
<img src="https://tex.z-dn.net/?f=%20%5C%3A%20" id="TexFormula1" title=" \: " alt=" \: " align="absmiddle" class="latex-formula"
Effectus [21]

Answer:

\tt \green{The \: elements }  \: of \:  \red{computer }  \: \blue{are:}

•Hardware

•Software

•Data

•Procedures

•Input Unit

•Output Unit

•CPU(Central Processing Unit)

•Connectivity

•Primary Memory

•Motherboard

•GPU(Graphics Processing Unit)

•Solid State Drive (SSD) or Hard Disk Drive (HDD)

•RAM

Explanation:

\tt \pink{HeavenMistress}

5 0
2 years ago
Read 2 more answers
A company pays its salespeople on a commission basis. The salespepople receive $200 per week plus 9% of their gross sales for th
Maurinko [17]

Answer:

using System;

     

public class Program

{

public static void Main()

{

 Console.Write("Enter gross sales: ");

 double sales = Convert.ToDouble(Console.ReadLine());

 double payment = 200 + (sales*0.09);

 Console.Write("total payment for this week is: "+payment);

}

}

Explanation:

May I suppose that you want a program in C# to calculate the week payment? in that case let review a solution:

using System;

     

public class Program

{

public static void Main()

{

//input the gross sales of the week

 Console.Write("Enter gross sales: ");  

//convert the string data to double

 double sales = Convert.ToDouble(Console.ReadLine());

//use described algorithm to calculate the payment

 double payment = 200 + (sales*0.09);

//show the value in console

 Console.Write("total payment for this week is: "+payment);

}

}

6 0
3 years ago
What is an attribute that describes an object's characteristic?
lawyer [7]

Answer:

Type of the object.

Explanation:

7 0
4 years ago
How to turn on my switch control bc it wont let me turn on when i keep on pressing it
Tatiana [17]

Answer:

try triple clicking on the home button and see if it works, if it doesnt try restarting your ipad and try again.

Explanation:

8 0
3 years ago
Other questions:
  • What is occurring when an attacker manipulates commonplace actions that are routinely performed in a business?
    6·1 answer
  • In order to protect your computer from the newest virus, which of the following should you do after you've installed a virscan s
    9·1 answer
  • The dfs replication engine uses a form of replication called
    6·1 answer
  • Proszę daje wszystko potrzebuje tego
    8·2 answers
  • A or an is a simple chip with two or more processor core
    5·1 answer
  • Uploading Your Work
    14·1 answer
  • Suppose you have two RAID arrays, one implementing RAID 3, the other RAID 5. Each has 9 disk drives in its array. If the RAID 5
    14·1 answer
  • My laptop screen is flashing colors all of the sudden, how can I solve this problem? Also why is this happening is it software o
    7·1 answer
  • 4. What are the things that a computer literate understands?name them
    5·2 answers
  • What is the definition of Technology?
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!