We have a "rectangular" double loop, meaning that both loops go to completion.
So there are 3*4=12 executions of t:=t+ij.
Assuming two operatiions per execution of the innermost loop, (i.e. ignoring the implied additions in increment of subscripts), we have 12*2=24 operations in all.
Here the number of operations (+ or *) is exactly known (=24).
Big-O estimates are used for cases with a varying scale of operations, governed by a variable (usually n) to indicate the sensitivity of the number of operations relative to a change in the size of n.
Here we do not have a scale, nor n is defined. The number of operations is constant and known at 24. So a variable is required to find the big-O estimate.
Fh. = 40h + 120, fh. = $200
200 = 40h + 120
200 - 120 = 40h
80 = 40h
80/40 = h
2 = h
h = 2 hours.
Answer:
6.3/2.5=2.52
Step-by-step explanation:
Answer:
Each student would get 4 inches of ribbon
Step-by-step explanation:
Mrs. Barkley has 75 inches of ribbon and is splitting it between 18 students so you would divide 75 by 18. When you divide you get 4.166666... etc. So the answer would be 4
Answer:
3 tons = 6000 pounds
Step-by-step explanation:
1 ton is equal to 2000 pounds, so just multiply 2000 by 3 :)
Hope this helps!