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²).
Volume of cylinder
v = πr²
v = 22/7 x 21²
v = 1385.441 cm³
Answer:
0
Step-by-step explanation:
The only value that would make sense is if at least one of the variables (A , B , C , D) is 0 (if not all of them). When multiplied, the answer will still be 0, thereby making the equation true.
~
(1) it can be both exterior of vertex or base. 180-130=50°
vertex is 50°: base=(180-50)/2=65°
base is 50°: vertex= 180-2*50=80°
vertex 50 base 65; vertex 80, base 50
(2)base=180-130=50°
vertex=180-2*50=80°
base 50 vertex 80
Answer:
$63.3
Step-by-step explanation:
You buy a 60 dollar watch.
60
There is a 6 percent tax. When adding tax, multiply the 6 percent by the original amount.
60 x 0.06
3.6
Add the tax to the original amount.
60 + 3.6 = 63.3
So, your total cost is 63.3 dollars.