Answer:
x=34
Step-by-step explanation:
Answer:
(0, 6), (2, 7)
y = mx + b
m = (7 - 6)/(2 - 0) = 1/2 = 0.5
b = 6
y = 1/2*x + 6
1/2*x - y = -6
So, answer D is correct. But m is the fraction 1/2 and not 12.
Answer:
0(n)
Step-by-step explanation:
Result previous exercise:
procedure count(a1a2...an : string with n > 1)
i:=0
for k:=1 to n
if ak =1 then i:=i + I
return i
<em>Note</em><em>: If you use a different algorithm, then you could possible get different results. </em>
<u>SOLUTION </u>
There is only one part of the code that contains an operation (comparison), namely if a_k =1
This comparison is executed in every iteration of the for-loop
k can take on the values from 1 to n (for k:=I to n), thus k can take on n values.
Thus in total there are then n comparisons, while n is 0(n).
Answer:
the answer of x is 2 as the answer