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²).
Day 3 is double than day two judging by hours baked... it's 96 cookies
Answer:
26
Step-by-step explanation:
6.5 is 10% of 65, so to find 40% of 65 we multiply 6.5*4=26
Answer:

Step-by-step explanation:
The given expression is

We need to find the simplified form of the given expression.
It can be rewritten as

Combine integers and fractions separately.

Taking LCM we get


In can be written as




Therefore, the expression
is equivalent to the given expression.