Answer:
C - 52
Step-by-step explanation:
z = 12 x = 2
(You do indices first!)
2 x 2 x 2 = 8
8 x 5 = 40
12 + 40 = 52
I hope this helps, have a good day! :D
WT is white T shirts
BT is blue T shirts, and WT=3BT
WT+BT=48
3BT+BT=48
4BT=48
BT=12 so WT =3×12=36
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²).