<span>p ← 1
s ← 0
for i is in {1, 2, 3, 4}
do p ← p · 3
s ← s + p
n = 1 => first iteration
p = 1 * 3 = 3
s = 0 + 3 = 3
number of multiplications ---> 1
n = 2
p = 3 * 3 = 9
s = 3 + 9 = 12
number of multiplications ----> 1 + 1 = 2
n = 3
p = 9 * 3 = 27
s = 12 + 27 = 39
number o multiplications --> 2 + 1 = 3
n = 4
p = 27 * 7 = 81
s = 39 + 81 = 120
final number of multiplications -----> 3 + 1 = 4
final value of s
s = 120
Answer: number of mujltiplications: 4
final value of s: s = 120.
</span>
Answer:
it's blurry
Step-by-step explanation:
Answer:
you add 5 for the compound investments each time
you add 6 for the simple investments each time
Answer:
(-1,4)
Step-by-step explanation:
First lets put the two equations into y=mx+b format by subtracting 2x and 4x to the right side of their equations.
y=-2x+2
y=-4x+0
Now you can put this into a system of equations, but you can also plug in the coordinates to see if both equations are equal. I will show system of equations solution.
-2x+2=-4x, solve this by adding -2x to the right side so that the 2 is by itself.
Now you have 2=-2x. Divide by -2 to get the x by itself, now you have x=-1. Plug this back into one of the equations, so y=-4x would be y=-4(-1), so y=4.