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²).
The answer is (1,0), I believe.
We are given a volume of 160 fluid ounces of chemical which is added to a container that holds 120,000 gallons of water. Assuming that the chemical has the same density as water, we just need to convert 120,000 gallons to ounces.
A conversion factor is taken from literature, 1 gallon is equivalent to 128 fluid ounces. So 160 fluid ounces is only 1.25 gallons, thus occupying minimal space in the container. The employee could add more of the chemical in the container. He can actually add 15360000 fluid ounces in total.
Answer:the answeer is
= 72 ft³
Step-by-step explanation:
Multiply the width of the wall by its height. So one of the walls is 80 square feet (10 feet wide x 8 feet high) and the other is 96 square feet (12 feet x 8 feet). If you need the total square footage of the walls - for figuring paint or wallpaper for example - you can simplify the calculation by first adding all the wall lengths together, then multiplying by the height (10 + 12 + 10 + 12 = 44 x 8 = 352 square feet of total wall area).