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]
I believe the answer is Klip on plato
I believe its <span>c-set up a study space, preview your materials, create a routine</span>
Answer:
User roles and access authorization
(Explanation of this question is given below in the explanation section.
Explanation:
As noted in question that a terminated employee comeback in office and installed some malicious script on a computer that was scheduled to run a logic bomb on the first day of the following month. And, that script will change administrator passwords, delete files, and shut down over 100 servers in the data center.
The following problem can be with that account
- Unauthorized user access and privileges
The user may be given unauthorized access to system resources. If a user has unauthorized access to system resource then he can modify or destroy the system function easily.
- The firewall may be disabled to detect the malicious script
The firewall should be enabled to detect such types of attack from unauthorized access to the system
May be user role is not defined properly. If role would be defined according to user role then there are very fewer chances in doing unauthorized changes in the system that will result in an unexpected outage.
To keep a desktop computer or a server powered up when the electricity goes off in addition to protection against power fluctuations, an <u>uninterruptible power supply (UPS)</u>, which contains a built-in battery, can be used.
<u>Explanation</u>:
An uninterruptible power supply (UPS) is a device that allows a computer or server powered up for a short time, when the electricity goes off. UPS device also provides uninterrupted service during power fluctuation.
A battery is inbuilt in the UPS and provides power for few minutes to the computer to shut down it in a proper manner.
UPS is available at affordable cost and can be maintained at low cost compared to generators.