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:
C. 16
Explanation:
You find 4/6 of 24
4/6 x 24 = 96
Then you divide 96 by 6
96/6 = 16
You can check your work by doing 16 x 6
Liana is correct bc henry included negative numbers
Answer:
The area is 15 feet
Step-by-step explanation:
So you are going to need two different equations-
l = w(3)
2l + 2w = 40
Insert the first equation into the second-
2(3w) + 2w = 40
Simplify this equation-
6w + 2w = 40
8w = 40
Divide both sides by 5
w = 5
Solve first equation
l = 5(3)
l = 15
Then find the area-
5 x 15 = 75
<span>f(x)=-6x-1
</span><span> X Y
0 -1
-1 5
6 -37
5 -31</span>