A is the answer have a good day
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:
15
Step-by-step explanation:
pemdas
multiply first 1x10=10
then add 5+10=15
Answer:
The correct answer is 85.7
Step-by-step explanation:
1st you take 428.5 and divide by 5 and boom
Given:
You and your friend each purchase an equal number n of magazines.
Your magazines cost = $1.50 each
Your friend's magazines cost = $2 each
Total cost = $10.50
To find:
The equation to find number of magazines you purchased.
Solution:
Your magazines cost = $1.50 each
Your friend's magazines cost = $2 each
Number of magazines purchased by you and your friend = n
Total cost = 
It is given that total cost is $10.50.


Divide both sides by 3.50.


Therefore, required equation is
and the number of magazines purchased by you is 3.