Answer:
16
Step-by-step explanation:
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).
Question one:A
Question 2: C
Answer:
C.(43-36)/36 x 100
Step-by-step explanation:
The initial value is 36 inches
new value = 43
Percent increase is (new - original)/ original * 100
(43-36)/36 * 100
I do not believe it is correct.
As time goes by, so does the inch. But, it says that only 1/4 falls, not 1 1/2. Say Y is constantly one. At hour one, it should be 1 1/4. At hour two, it should be 1 2/4 (or 1 1/2). At hour three it should be 1 3/4. At hour four, only now will it become 2 inches. They added to many in this table.
Good luck!