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

5. Can you determine the number of neutrons in the nucleus of an atom by looking at the element's average atomic mass and the atomic number? Why or why not?
Whats the blubbers purpose
What do you think the government should do
What type of evidence does former First Lady Michelle Obama mostly use to support the argument that art influences character?
Identify the marketing relationship that the given scenario portrays. Matt’s band has released their first independent album at their own expense. They are plan
what is (12m+1) - (5m-4)
Complete the chart to show what Jude does to comfort herself when she thinks that ben is doing better with the English exercise than she is.
Please help (I'll give 100 point and brainly. What is the order of events in Hamadi and the plot technique?
1 2 3 4 5 6 7 you make me feel like__?
Can someone solve this for me? I’m stuck