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²).
It’s A because 2+3=5 and 5x7=35
Smaller angle = 41°
Larger angle = 139°
Step-by-step explanation:
(7x - 1) + (2x + 1) = 180
7x + 2x - 1 + 1 = 180
9x = 180
x = 20
- The measure of the smaller angle is
2x + 1
= 2(20) + 1
= 40 + 1
<u>= 41°</u>
- The measure of the larger angle is
7x - 1
= 7(20) - 1
= 140 - 1
<u>= 139°</u>
For this case we have the following equations:
2x - 3y = 1
2x + 3y = 2
When adding both equations we observe that:
Sentence 1: we have an equation of a variable, which in this case will be x. We can clear the value of x.
Sentence 2: Knowing the value of x, we can substitute in any equation and find the value of y.
Sentence 3: The value of x and y represents the point of intersection of both lines (x, y).