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:
5.) MIGHT I SAID MIGHT be 20+16+12=48km squared for perimeter and 192 (im not sure really) for area
i can only do one I HOPE this helps probably not tho
Step-by-step explanation:
$4.43 rounded because you would divide 3.69 by 10 and multiply that by 12.
I did say the answer is $35. Because, you should use the highest factor or whatever operation the problem is using, to find the answer. Not sure if it's some two-step problem....