ethanspencer8254 ethanspencer8254
  • 18-07-2019
  • Computers and Technology
contestada

int alpha [5];

int j;
alpha [0] = 2
for ( j = 1; j < 5; j++)
alpha [j] = alpha [ j - 1] + 3;
3. What is the value ofalpha[4] after the code aboveexecutes?

a.

5

c.

11

b.

8

d.

14

Respuesta :

demimurray573
demimurray573 demimurray573
  • 28-07-2019

Answer:

D - 14

Explanation:

Each time the program executes an iteration of the for-loop, it works out the current element by adding 3 to the previous element.

alpha[0] = 2

+3

alpha[1] = 5

+3

alpha[2] = 8

+3

alpha[3] = 11

+3

alpha[4] = 14

Answer Link

Otras preguntas

In this problem, we're going to explain why any trapezoid that can be inscribed in a circle must be an isosceles trapezoid. In this figure, let's assume without
What special problems might an animal face if it lives under sand or mud?
The letter explains the treatment of prisoners of war. Of 3.6 million prisoners of war, only several hundred thousand are still able to work fully. A large part
In "To a Poor Old Woman," William Carlos Williams repeats the phrase "They taste good to her" four times. How does this use of repetition affect the poem? he re
The graph of a polynomial function has zeros of 3 (multiplicity 2), and -7 (multiplicity 1). Write a function, in standard form, that could represent this func
sentence using pharaoh with tombs together​
Which characteristics of crystal faces define crystal systems? Check all that apply. angle color number size hardness
Who led the Reformation movement? ​
Which one of the triangles shown is the image of the other triangle after dilation? What are the coordinates of the center of dilation? What is the scale factor
what is the vocabulary of eqations​