Number of dogs in the shelter are 12
<u>Step-by-step explanation:</u>
Step 1:
Given that total animals = 108 and number of ferrets = 1/3 of 108. Find number of ferrets in the shelter.
Number of ferrets = 1/3 of 108 = 1/3 × 108 = 36
Step 2:
Given that of the remaining animals, number of cats = 5/6. Find the remaining animals and the number of cats.
Remaining number of animals = 108 - 36 = 72
Number of cats = 5/6 of 72 = 5/6 × 72 = 60
Step 3:
Find number of dogs in the shelter.
Number of dogs = 108 - (36 + 60) = 108 - 96 = 12
Divide 48 by 3, for every three 8th graders, there is one 7th grader in choir
48÷3=16
There's 16 7th graders in choir !!
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.
Answer:
which one is the walnut?
tell me in the comments, and I will answer :)