laiban123456 laiban123456
  • 02-07-2020
  • Computers and Technology
contestada

Q) write a code that reads a given array and calculates the SUM of its elements.

Respuesta :

Plus16463574585
Plus16463574585 Plus16463574585
  • 02-07-2020

Answer:

See the explanation below.

Explanation:

If don't know which language you are using, but the basic pseudo code for this problem will be:

variable sum = 0;

for ( i = 0;  i < array.length;  i ++) {

    sum += array[i];

}

print(sum);

Best Regard!

Answer Link

Otras preguntas

Who conquered the aztecs and brought about the end of the empire?
What is the slope of the line on the graph? The slope of the line is____ . This means that Jan runs___ laps every ____ minutes.
Both “The Maori: Genealogies and Origins in New Zealand” and “The Raven and the First Men: The Beginnings of the Haida” feature
3 examples of balanced forces
What helps to identify trends? PictographPie graphLine graphBar graph Double bar graph
Laura wants to burn a total of 500 calories. So far, she has burned 445.7 calories. How many more calories must Laura burn
What are the differences between plant and animal cells?
Trans fat is linked with raising your blood’s hdl cholesterol levels and increasing your risk of heart disease.
A liter is the same as a _____.
What happens to the space between the particles that make up a gas as it changes into a liquid? The space between the particles decreases. The space between th