Answer:
I need some time i answering your question please follow me and thanks
Big-O notation is a way to describe a function that represents the n amount of times a program/function needs to be executed.
(I'm assuming that := is a typo and you mean just =, by the way)
In your case, you have two loops, nested within each other, and both loop to n (inclusive, meaning, that you loop for when i or j is equal to n), and both loops iterate by 1 each loop.
This means that both loops will therefore execute an n amount of times. Now, if the loops were NOT nested, our big-O would be O(2n), because 2 loops would run an n amount of times.
HOWEVER, since the j-loop is nested within i-loop, the j-loop executes every time the i-loop <span>ITERATES.
</span>
As previously mentioned, for every i-loop, there would be an n amount of executions. So if the i-loop is called an n amount of times by the j loop (which executes n times), the big-O notation would be O(n*n), or O(n^2).
(tl;dr) In basic, it is O(n^2) because the loops are nested, meaning that the i-loop would be called n times, and for each iteration, it would call the j-loop n times, resulting in n*n runs.
A way to verify this is to write and test program the above. I sometimes find it easier to wrap my head around concepts after testing them myself.
I’m not sure but if I wouod have to answer it would be 2 or 3
ABS is activated when the computer detects the wheel[s] are decellarating too quickly. It then pumps the brakes about 15 times a second. People can't pump the brakes anywhere near that fast, so it's better that the driver just keep the brake pedal depressed and let the machine take care of it.
4. Find an example of a print or Internet ad that includes images and text, and then answer the following questions about it.
a. Describe the ad. (1-3 sentences. 1.0 points)
Mcdonald's all day breakfast. It shows their breakfast items, with high-quality images.
b. What do you think this ad's marketing message is? (1-5 sentences. 2.0 points) TIP: Does it use a specific desire or fear, or does it try to show how the product is a need or how it solves a problem?
They use desire because they show their delicious looking food, and the customers are wanting it.
c. Is the ad trying to get people to do something? If so, what is it trying to get people to do? If it isn't trying to get people to do something, what do you think the point of the ad is? (1-5 sentences. 2.0 points)
The ad is trying to get people to stop at Mcdonalds and buy their breakfast items
d. Do you think this ad is effective? Why or why not? (1-5 sentences. 2.0 points)
Yes I think this ad is effective because it is showing high quality images of their breakfast items that encourage people to stop by and try their products.