2(P+1)+3(P+2)>2
Distribute
2P+2+3P+6>2
Simplify
5P+8>2
Subtract 8 from both sides
5P>-6
Divide both sides by five
P>(-6/5)
Turn to mixed number and you're done.
P>-1 and 1/5
I guess your question is
<span>Sean read 15 of a book in 112 hours. How long will it take Sean to read 12 of this book?
15 books ........112 hours
12 books..........? hours
12 x 112 / 15 = 89.6 hours.
</span>
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).