Answer:
- m = 3
- n = 20
-
- triList = []
- current = 0
- for i in range(1, n + 1):
- current = current + i
- if(current >= m and current <= n):
- triList.append(current)
-
- print(triList)
Explanation:
The solution code is written in Python 3.
Firstly, create variable m and n and set the value 3 and 20 to the variables (Line 1 -2)
Create a triangle number list (Line 4) and another variable current to hold the value of current total of triangle number (Line 5).
Create a for loop and iterate through the number between m and n (Line 6). Calculate the current total of triangle number (Line 7) and proceed to check if the current triangle number is bigger or equal to m and smaller and equal to n, add the current triangle number to triList (Line 8-9).
Print the triList (Line 11) and we shall get [3, 6, 10, 15]
The answer is the first one
Answer:
wifi is the best network for all, As it gets in all corners of the house.
Answer:
CPI = 0.94
Explanation:
The formula for execution time is given below:
Execution time = clock cycles * cycle time
As Execution time = 750 s
clock cycle time = 0.333 ns = 0.333 * 10^-9
so putting these values in the above formula, we get
750 = clock cycles * ( 0.333 * 10^-9 )
clock cycles = 750 / ( 0.333 * 10^-9 )
clock cycles = 2.25 * 10^12
As the results of the spec cpu2006 bzip2 benchmark running on an amd barcelona has an instruction count = 2.389 * 10^12
and the formula for clock cycles is:
clock cycles = number of instructions * CPI
CPI = clock cycles / number of instructions
CPI = 2.25 * 10^12 / 2.389 * 10^12
CPI = 0.94
I should be skeptical of the credibility of sources that I have during the gathering. Be cautious and make sure that data comes of from trusted specialized sources. Trusted sources can be easily identified for their popularity on certain fields. Determine the purpose of the site and the data it contains.