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 =
, 
Step-by-step explanation:
6 = x^2 - 10x
0 = x^2 - 10x - 6
Let's use the quadratic formula. (
)

x = 
= 5 +- 
x =
, 
Anything raised to the 0 power = 1
Answer:
387 km
Step-by-step explanation:
The length of AC, b can be obtained using the cosine rule ; using the cosine relation:
b² = a² + c² - 2ac CosB
b² = 250² + 185² - 2(250*185) Cos125
b² = 62500 + 34225 - 92500 * −0.573576
b² = 96725 + 53055.820
b² = 149780.82
b = sqrt(149780.82)
b = 387.01527
b = 387 km (nearest whole number)
Answer C is correct. If angle 1 + angle 2 = 180 degrees then L is parallel to M.
Co interior angles are only supplementary in parallel lines