lclaudettecarte8111 lclaudettecarte8111
  • 07-07-2020
  • Computers and Technology
contestada

Consider the following algorithm. x â 1 for i is in {1, 2, 3, 4} do for j is in {1, 2, 3} do x â x + x for k is in {1, 2, 3, 4, 5} do x â x + 1 x â x + 5 Count the number of + operations done by this algorithm.

Respuesta :

akindelemf
akindelemf akindelemf
  • 07-07-2020

Answer:

Number of + operation done by this algorithm is 60

Explanation:

i = 4

j = 3

k = 6

Now, let "n" be number of '+' operations

n = i × j + i × 2k

substituting the figures

n = 4 × 3 + 4 × (2 × 6)

n = 12 + 4 × 12

n = 12 + 48

n = 60

Answer Link
Kalebvarnum73
Kalebvarnum73 Kalebvarnum73
  • 20-10-2020

Answer:

i can't see some of the numbers

Explanation:

Answer Link

Otras preguntas

Las dos cifras de un número suman 11 . Si las cifras se invierten de orden se invierten de orden , se obtiene otro número que excede en 27 unidades al anterior¿
Activity 3: Findings3.1. Discuss THREE contributing factors that led to the human rights violation on gender based violence ​
Who created the assembly line? A. Henry Ford B. Lee lacocca C. Bill Gates D. Cornelius Vanderbilt
Bryon is solving the equation 22 - 6x = 15. He gets to 7 = 62. Is this a valid way to solve the equation?
Determine the volume of a helium balloon given the balloon was filled from a container 0.15L of gas at 2 atm if the new pressure is 0.97 atm. Assume constant te
Can someone help I’m confused
Please help Ill give brainlest
Match the testing error example with the appropriate corrective step:Group of answer choicesI did not study the material for that question.[ Choose ]I confused
pls help me i need help asap 30!! points pls help on all 4 questions
PLEASE HELP DUE IN 15 MINUTES
good job