Answer:
-2c
Step-by-step explanation:
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:
He pays $39.56
Step-by-step explanation:
If finding the discount, always divide the percent by 100.
25% = 0.25
52.75*0.25=13.1875
Because its money, round to hundredths place, $13.19
Subtract the "percent" (13.19) from 52.75
52.75 - 13.19 = $39.56
Answer:
x = 18; y = 20
Step-by-step explanation:
6.
Triangles KLM and KNO are similar, so the ratios of the lengths of corresponding sides are equal.
KL/KN = LM/NO
10/30 = 6/x
Cross multiply.
10x = 6 * 30
10x = 180
x = 18
KL + LN = KN
10 + y = 30
y = 20
The answer is 33%. To work out a percentage increase we work out the increase, so the difference between 12 and 16 is 4. We divide this by the original amount (12) and times it by 100, which gives you 33.333(recurring) which is rounded to 33%. Hope this helps!