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

A rectangle has a perimeter of 196 meters and a length of 50 meters.What is the width of the rectangle? Explain.
A zookeeper predicted the weight of a new baby elephant to be 256 pounds when it was born. The elephant actually weighed 288 pounds at birth. What was the perce
a dog weighs 44 pounds the dog needs to lose 7 pounds to reach its ideal weight mikala wrote the equation x + 7 = 44 to represent this situation Kirk wrote the
Which country uses tax brackets as part of its tax system? Canada Australia South Africa All of the above
what is the oldest living creature
Which equation does not have the same solution as the others? x/4 = 2, x - 9 = 17, x + 12 = 20, 2x = 16.
Your _____ is the way you use your time, energy, and resources. a. interest b. lifestyle c. occupation d. career
Soil structure and soil texture are essentially the same property of soil. true or false
Andrea put 2 quart of water and 1/1/2 cups of lemon juice in a pitcher. How many total cups of liquid are in the pitcher
The only function of the skeletal system is to provide the body with a framework. True or False