1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
svp [43]
2 years ago
11

PLEASE I NEED HELP ASAP PLEASE PLEASE!!!

Computers and Technology
1 answer:
aniked [119]2 years ago
8 0

Answer:

Following are the program in the Python Programming Language

#set variables to 0

positive_sum=0  

negative_sum=0  

#print message  

print("Enter 0 to terminate")  

#set the while loop  

while(True):  

#get input from the user  

num=float(input("Enter positive or negative numbers: "))  

#set if statement to check condition  

if(num==0):  

  break  

elif(num>0):  

  positive_sum+=num  

else:  

  negative_sum+=num  

#print output with message  

print()  

print("sum of positive numbers: ", positive_sum)  

print("sum of negative numbers: ", negative_sum)  

Output:  

Enter 0 to terminate  

Enter positive or negative numbers: 1  

Enter positive or negative numbers: 3  

Enter positive or negative numbers: 5  

Enter positive or negative numbers: -7  

Enter positive or negative numbers: -2Enter positive or negative numbers: 0  

sum of positive numbers:  9.0  

sum of negative numbers:  -9.0

Explanation:

Here, we set two integer data type variables "positive_sum", "negative_sum" and initialize to 0.

Then, we set the while infinite loop inside the loop.

Set a variable "num" and get input from the user in it.

Set the if conditional statement and check condition the variable "num" is equal to 0 then, loop will terminate.

Set the elif statement and check condition the variable "num" is greater than 0 then, add that input and store in the variable "positive_sum"

Otherwise, add that input and store in the variable "negative_sum".

Finally, we print the output with the message.

You might be interested in
Using C++.
butalik [34]
Alright -

So, we're going to create an object of type Calculator, with no additional information (which would be passed in the form of parameters). 

We would do this by saying: 

<em>Calculator calc;
</em>
Hopefully, this helps you! =)
4 0
3 years ago
When emergency changes have to be made to systems, the system software may have to be modified before changes to the requirement
goblinko [34]

Answer:

The Agile model

Explanation:

We can point out that this is all about the software development lifecycle model. In the software developmental lifecycle, the agile model is the most suited model that can be used to bring changes as per the requirement.

It is the model that provides huge flexibility as the changes can be made to the software even if the application is running. Moreover, this model follows documentation regarding the process of bringing the changes to the software. And even the new changes should pass the quality assurance test in order to go to the production phase.

What this does is that it actually ensures that your application is fit and is consistent to handle and perform operations.

5 0
3 years ago
The ________ is the biggest power consumer on a mobile computing device.
AleksandrR [38]

The part of a computing device that is the biggest power consumer is;

Central Processing Unit

<h3>Central Processing Unit</h3>

The part of a computing device that cosnumes the most power is called the Central Processing Unit (CPU). This is due to the following reasons;

  • The CPU consists of motherboard and battery that draws power from the socket.

  • The Mother board is equipped with logic gates that are used to implement logic in the computer.

  • The Logic gates are voltage signals that signify the binary information that are fed into the system.

Read more about Central Processing Unit (CPU) at; brainly.com/question/4558917

5 0
3 years ago
Write an algorithm
liq [111]

Answer:Pseudocode & Algorithm Example 1: Write an algorithm to determine a student's final ... Pseudocode & Algorithm Pseudocode: Input a set of 4 marks Calculate their average by ... Information system flowcharts show how data flows from source documents ... Different symbols are used to draw each type of flowchart.

Explanation:

7 0
3 years ago
Can someone please help with one? I will mark brainlest!!!
Snowcat [4.5K]

I want to say that it is data authenticity?

4 0
3 years ago
Read 2 more answers
Other questions:
  • What is created for each user the first time the user logs onto windows?
    7·1 answer
  • Which of the following sentences is most appropriate for written communication at work or with a customer?
    12·2 answers
  • Michelle is a salesperson who is paid on commission. She just sold a customer a very reasonably priced tablet, but only after th
    14·1 answer
  • What does ascii stand for?
    14·2 answers
  • Who can pick up GPS signals
    14·1 answer
  • When you sit for a typing test, what is the first thought that crosses your mind?
    13·2 answers
  • What is the small ribbon inside a microphone that pick up vibrations
    7·1 answer
  • Define power supply and types of power supply<br>​
    11·1 answer
  • Explain the correct ways of using keyboard. .​
    14·1 answer
  • Which workbook view is used most often in Excel?
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!