Answer:
count_p = 0
count_n = 0
total = 0
while True:
number = int(input("Enter an integer, the input ends if it is 0: "))
if number == 0:
break
else:
total += number
if number > 0:
count_p += 1
elif number < 0:
count_n += 1
print("The number of positives is: " + str(count_p))
print("The number of negatives is: " + str(count_n))
print("The total is: " + str(total))
print("The average is: " + str(total / (count_p + count_n)))
Explanation:
Initialize the variables, count_p represens the number of positives, count_n represents the number of negatives, and total represents the total of the numbers
Create a while loop iterates until the user enters 0. If the number is not 0, then add it to the total. If the number is greater than 0, increase count_p by 1. If the number is smaller than 0, increase count_n by 1.
When the loop is done, print the count_p, count_n, total, and average
Answer:
C) chain
Explanation:
Small group network comprises of a vertical, direct, chain, all channel and box network
The vertical network is a network that is made for some specific purpose or goal of the business organization.
The direct network is a network that is directly interrelated to each other.
The chain network is that network in which the formal chain of command follows through which proper communication can be done in all the departments without any barriers to a communication network
It also shows that each member can communicate the person below and above their position only in a vertical hierarchy. It follows the top-down approach
This all channel network follows an informal communication network through which anyone can communicate with anyone at any time with following any chain of the business organization
The box network covers all the things in one network. Like - various software, packages, etc
In the given case Peter is asking permission from the supervisor and supervisor is discussing with the department director, is showing the formal chain of command that's why according to the given scenario the most appropriate answer is chain network.
Answer:
The answer to this question as follows:
Explanation:
In option a, When we use fork, a new mechanism, that uses fork() method, which is in the parental process, to replicate all sites. It has been installed in a space-differentiating operating system.
In option b, It is the present system cycle that scan and wait for any of the system processor to be installed.
In option c, The time delay happens when A operates. It is a global that make issues, which are cleared and slowed down when an interrupt happens. In this process, there are not any distractions. It splits into slowly as it heads into the ISR. It helps to understand the code easily.
Answer:
Outlook as it is a common email aplication which may experience some issues
Explanation: