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:
y = 3x - 10
Step-by-step explanation:
Starting with 3x - y = 10, add y to both sides:
3x = 10 + y
Then subtract 10 from both sides:
3x - 10 = y
If you switch the sides of the equation, it can also be written as:
y = 3x - 10
Answer:
B- 5 5/6
Step-by-step explanation:
35 divided by 6 is 5 meaning there are 5 whole numbers in the fraction you then figure out how many 6 the remaining amount is which in this case is 5 so the answer is 5 5/6 hope this helps!
Answer:

Step-by-step explanation:
Since question already gives the number of dollars she will tip, I'm assuming it's asking for percent tipped.
Because the total is $75 and Theresa is tipping $6, she is tipping
of the total. To convert this to a percentage, multiply by 100: 
It is given in the question that
Anna buys 12 pens and 20 pencils for a total cost of $16. One pen costs $0.40 more than a pencil.
Let the cost of pencil is $ x .
Therefore cost of pen is

According to the question

Distributing 12 and combining like terms, we will get

Therefore cost of pencil is $0.35 and cost of pen is
