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

What does the word part patri- mean? adulthood childhood maternal paternal
what tool did Paleolithic people first use to hunt animals ?
Older sedimentary rocks are usually found above younger ones. True False
3) What two ethnic groups populate Israel?
25x^2+9y^2+72y-81=0. Find the standard form of the equation by completing the square. Then identify and graph each conic.
A student wants to express her excitement to friends about getting her driver’s license. Which type of writing would not be appropriate for this audience and pu
insight into the thoughts and feelings of all characters. Which type of narrator does this describe?
Where did the Huns originate? A. Europe B. India C. Africa D. Asia
what phrase did Winston Churchill use to describe the area of the continent under communist control?
Which of these statements is true? A. Meiosis helps your body heal itself. B. Meiosis involves two cycles of cell division. C. Mitosis brings genetic variety to