Answer:
The code solution is written in Python.
- positiveSum = 0
- negativeSum = 0
- num = int(input("Enter a number: "))
- while(num != 0):
- if(num > 0):
- positiveSum += num
- else:
- negativeSum += num
- num = int(input("Enter a number: "))
- print("Sum of positive number: " + str(positiveSum))
- print("Sum of negative number: " + str(negativeSum))
Explanation:
Firstly, we need to create two variables, <em>positiveSum</em> & <em>negativeSum</em>, to hold the running total of the positive and negative input numbers. (Line 1 - 2)
Next, use Python in-built method<em> input()</em> to prompt user for the first input number and assign it to variable <em>num</em>. (Line 4)
Create a <em>while-loop </em>by setting the condition as while input number is not equal to 0, the program shall positive to add the current input number to either variable<em> positiveSum</em> or <em>negativeSum</em>. (Line 6 -10) If the input number is bigger than zero, the current input number should be added to variable<em> positiveSum</em> else it should add to variable <em>negativeSum</em>.
Next, the program shall proceed to prompt user for the next input number. (Line 12)
The entire process is repeated until user enters zero to exit the while loop.
Lastly, display the total of positive and negative numbers. (Line 14 - 15)
Answer:
A - Activity
Explanation:
UML contains multiple subdivisions of diagrams which allow you to visualize what the software will do, while activity diagrams demonstrate the process of what happens in the system being modeled. This is why UML uses the activity diagram to model the flow of procedure.
<span>Regsvr32.exe/u will unregister a component when run. Regsvr32.exe/u is a utility tool that is installed on Windows Xp or later versions of Windows. It has a 32-bit version and 64-bit version which can be found in the system root folder on a computer. It is capable of unregistering servers.</span>
Answer:
The correct answer to the following question will be Option B (Interpersonal feedback).
Explanation:
- Interpersonal feedback seems to be a mechanism under which someone talks. Individuals deliver a message regarding their sensations and expectations of actions by another.
- It encourages employees to take obligation for a group's results and to change the look they correspond to many other people in.
Therefore, Interpersonal feedback is the right answer.