We have a "rectangular" double loop, meaning that both loops go to completion.
So there are 3*4=12 executions of t:=t+ij.
Assuming two operatiions per execution of the innermost loop, (i.e. ignoring the implied additions in increment of subscripts), we have 12*2=24 operations in all.
Here the number of operations (+ or *) is exactly known (=24).
Big-O estimates are used for cases with a varying scale of operations, governed by a variable (usually n) to indicate the sensitivity of the number of operations relative to a change in the size of n.
Here we do not have a scale, nor n is defined. The number of operations is constant and known at 24. So a variable is required to find the big-O estimate.
Answer:
0.14
Step-by-step explanation:
1/7 = 0.1428571429.......
round to two decimal places so se look at the 4 which is the second decimal place, and then we see that the number to the right of it is less than 5 and therefore we round down to 4 and not 5.
:) hope this helps, please mark as brainliest!
Answer:
D
Step-by-step explanation:
1) 1 dot
2) figure 1 + 3 dots
3) figure 2 + 5 dots
4) figure 3 + 7 dots
5) figure 4 + 9 dots
and keeps going....
The next figure, takes the solution of last figure and add odd number in increasing order.
In this type of problem, find a matter.
Answer:
The cost for each pound of trail mix is $ 1.75 and each pound of jelly beans is $ 2.75.
Step-by-step explanation:
Let each pound of trail mix cost dollars and each pound of jelly beans cost dollars.
Given:
7 pounds of trail mix and 9 pounds of jelly beans cost $ 37.
So, --------------- 1
Also, 5 pounds of trail mix and 3 pounds of jelly beans cost $ 17.
So, --------------- 2
Multiplying equation 2 by -3, we get
Now, adding equations 1 and 3, we get
Now, plug in in equation 1 and solve for .
Therefore, the cost for each pound of trail mix is $ 1.75 and each pound of jelly beans is $ 2.75.