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.
The best estimate for the length of a bean would be B: 13 cm
Answer:
6 miles per hour
Step-by-step explanation:
speed = distance/time
speed = 1/2÷1/12 which is the same as
1/2 x 12/1 = 6
6 miles per hour.
or ou could change the 1/2 to become 0.5
and the 1/12 to become 0.083333333
and divide 0.5 ÷ 0.083333333 = 6.000000024
rounded to one decima place become 6.0
6 miles per hour
Answer:
y = -x + 1
Step-by-step explanation:
We're putting it into the form y=mx+b where m is the slope, and b is the y-intercept.
When two lines are parallel, they have the same slope, so the slope is going to be -1.
New equation: y = -x + b.
Now, you know that (4, -3) is a solution so you can plug in x = 4 and y = -3, then see what value of b make the equation true.
-3 = -4 + b
add 4 to both sides
1 = b
This means that the equation is y = -x + 1