Answer:
f(N) = 2+ N/2 + 6N² units of time.
Step-by-step explanation:
Assigning 0 to the variable sum takes one unit of time.
Each time you increment sum by B, you need to call the value of sum, sum it to B and assign it to sum, which takes three units of time in total. You are repeating this process for each value of B which ranges from 1 to 4n and for each value of A which ranges from 1 to n/2. Opening the FOR takes also another unit of time, so, as a result, we have
f(N) 1 + 1 (open the FOR in A)+ N/2*(1 (open the FOR in B) + 4N*3) = 2+ N/2 + 6N² units of time. It has order complexity O(N²).
Answer:
x=8 and y=3 (So, yes!)
Step-by-step explanation:
I will solve your system by substitution.
(You can also solve this system by elimination.)
−x+4y=4;−x+3y=1
Step: Solve −x+4y=4 for x:
−x+4y+−4y=4+−4y(Add -4y to both sides)
−x=−4y+4
-x/-1 = -4y+4/-1 (Divide both sides by -1)
x=4y−4
Step: Substitute 4y−4 for x in −x+3y=1:
−x+3y=1
−(4y−4)+3y=1
−y+4=1(Simplify both sides of the equation)
−y+4+−4=1+−4(Add -4 to both sides)
−y=−3
-y/-1 = -3/-1 (Divide both sides by -1)
y=3
Step: Substitute 3 for y in x=4y−4:
=4y−4
x=(4)(3)−4
x=8(Simplify both sides of the equation)
<u>Answer:</u>
x=8 and y=3
Answer: $393
Step-by-step explanation: (34’+ 30’+67’) x $3.00 = 131 x 3.00 = 393
21 because you just multiply the 2 numbers.