Design a program that ask the user to enter a series of positive numbers. The user should enter a negative number to the series. After all the positive numbers have been entered the program should display their sum

Answers

Answer 1

Answer:

total = 0

while True:

   number = float(input("Enter a number: "))

   

   if number < 0:

       break

   

   total += number

   

print("The total of the positive numbers entered is", total)

Explanation:

*The code is in Python.

Initialize the total as 0

Create a while loop. Inside the loop:

Ask the user to enter a number. Check the number. If it is smaller than 0 (This means it is a negative number), stop the loop using break. Add the number to the total (cumulative sum). (This way your program keeps summing numbers until you enter a negative number)

When the loop is done, print the total


Related Questions

what advice can you give to learners to achieve their goals​

Answers

Answer:

Never give up, take your time, don't get distracted easily, lock your electronics in a box until you finish your work.

Reach for the stars! Always go the extra mile! Never give up!

In a sentence

If you wanted to become a police officer and you had to read boring books and you wanted to give up, but always think "I should always push myself past my limits, If I gave up then how would i know what I could have become?

Trademark

Owned by me

What type of hacker would a company hire to check for vulnerabilities in their web page?

Answers

A white hat hacker or a certified ethical hacker.

Answer:

a hacker who can infiltrate a highly protected file but cant protect themselves against anime web site ads cant tell if this was a real question if so sorry

Explanation:

Using the table to the right, answer the following questions. Values shown in B5, B9, B13, and B17 represent ______. The value shown in B18 ______. ______ allows you to calculate the sum of selected values without duplicating values in the grand total.

Answers

Answer:

Values shown in B5, B9, B13, and B17 represent

✔ subtotals.

The value shown in B18

✔ does not include the values of B5, B9, B13, and B17.

✔ The subtotal function

allows you to calculate the sum of selected values without duplicating values in the grand total.

The values shown in B5, B9, B13, and B17 represent  subtotals. The value shown in B18  does not include the values of B5, B9, B13, and B17.

What is the SUBTOTAL Function in Excel?The subtotal function allows you to calculate the sum of selected values without duplicating values in the grand total.

The SUBTOTAL function in Excel is known to be a function that gives room to system users to make groups and then carry out any other Excel functions.

Conclusively, the functions such as sum that is used in Subtotal function in Excel can aid users when they are analyzing their data.

Learn more about subtotal function from

https://brainly.com/question/14465957

Organisms in a food web are related through producer/consumer, predator/prey, and parasite/host relationships. Because of these relationships, one population affects others through direct and _______ interactions.

Answers

Answer:

Indirect.

Explanation:

Pyramid of energy is a model used to depict the flow of energy from one trophic level or feeding level to the next in an ecosystem. It's a diagram that compares the energy used by organisms at each trophic level of the food chain. The pyramid of energy must never be inverted or turned upside down.

The units used in the construction of pyramids of energy is kilocalories (kcal) or energy per area per time (Jm-²year-¹).

Organisms in a food web are related through producer/consumer, predator/prey, and parasite/host relationships. Because of these relationships, one population affects others through direct and indirect interactions. A direct interaction refers to the linear relationship between two organisms such as predator feeding on a prey (a lion eating a deer) while an indirect interaction is a type of relationship that occurs or is mediated through a third.

What is Qbasic programming language?​

Answers

Answer:

QBASIC is a high level programming language that allows us to write programs. BASIC uses English like words and mathematical symbols to write programs. The programs written in QBASIC need to be converted into machine codes. QBASIC provides working area to write programs and QBASIC has its own Interpreter

Explanation:

this isn't really a question ,but a random fact about Fnaf William Aton

Springtrap is possessed by a man named William Afton, or known as Purple guy.William Afton murdered 6 children and stuffed them into suits, now the children posses those suits, Gabriel possessed Freddy Fazbear, Jeremy possessed Bonnie, Susie possessed Chica, and Fritz possessed Foxy, their was one more kid that hadn't had an original so she was stuffed into a Golden Freddy suit.
Who used to be known as Fred bear the bear was already possessed by a child named Evan Afton or C.C (The Crying Child).And since the suit was already possessed Evan Afton was forced out of the suit and now possess a shadow version of Golden freddy known as shadow Freddy.
Shadow Freddy (C.C) was a big part of William Aftons death, C.C lead the animatronics to be dismantled by William, but the animatronics saw that as a chance to get revenge and chased him into a springlock suit called Springbonnie, William Afton was then springlocked and died a slow and painful death from metal being forced in his body and loss of blood.
So you Learn/read that Springtrap is William Afton a serial killer who murdered 6 children and died a slow painful death due to springlocks.
So, thank you for your time.

Answers

Answer:

oop- welp. that's pretty cool

Explanation:

Answer:

this is a game but good job for doing your research

Explanation:

Give 5 advantages of using powerpoint?​

Answers

it can be presented pictorially and thus make it easier to adopt the material

The value in this assignment statement ( age= textbox2.text)

Answers

Answer:

Is from property

Explanation:

because the value or your age in this case comes from the answer the user writes in the property (text box)

Amal wants to store a list of the average temperatures for the past month (for example 14.2, 14. 12.6). What data type can he use to store all these values?
A. Floating point number
B. Integer
C. Array
D. String

Answers

Answer: the correct answer is C

Explanation: array is 100% correct

I got the question right

When creating a budget you musk track both your budgeted expenses and your blank expenses

Answers

Answer:

actual

Explanation:

A budgeted cost refers to expenses for transactions and operations that the company and the management have to make in the future based on forecasts and future goals.

Actual costs refer to costs incurred on actual operations and transactions during the period recently ended.

When creating a budget you must track both your budgeted expenses and your actual expenses.

Which of the following would be better communicated with an image than with text?
Choose the answer.
the tone of a person's voice
an invitation to a museum opening
the decor at a wedding
the schedule for a conference

Answers

Answer:

A decor to a wedding

Explanation:

its bc who would want to know how its described when u could look of how it looks u might be speechless

The wedding's decor would've been best communicated through an image than through prose, and further calculation can be defined as follows:

Humans react and process new info more efficiently than every sort of data. Visual content is processed 60,000 seconds faster by the human brain than text. It is the picture is worth 60,000 words! Moreover, visual data accounts for 90% of the information conveyed to the mind.

Therefore, the final choice is "the decor at a wedding ".

Learn more:

brainly.com/question/16390691

Tip of advice on brainliest.You can copy and paste the question then search it in the search bar because i can guaranty that someone has asked that question before. and then all you got to do that and you can keep your points. hope this helps! ;)

Answers

Answer:

Thx Man i actully didnt think of it before

(Hey do u wanna rp btw (roleplay

Explanation:

In your own words, explain what it means to “buy low, sell high.”

Answers

Answer:

Resell value should be high like buying a used car for a low price fixing it a bit and double your money.

Explanation:

Answer:

Exactly what it says

Explanation:

You buy items at a low price then sell them at a higher price to ensure you get a profit

What is the use of Ellipse Tool in photoshop

Answers

The Ellipse Tool creates elliptical shapes and paths (shape outlines) it’s also used for elliptical, including circular, selections. You can easily select objects such as clocks, balls, and full moons by using this tool. There is a keyboard shortcut where if you see the elliptical tool in the tool box, you can press M on the keyboard, if you see a rectangular tool, press shift + M together on the keyboard. Hope that helped!

Photographing during the midday can produce which of the following?

More vibrant colors
Harsh shadows
Blurring
All of the above

Answers

It can produce harsh shadows

Answer:

Harsh Shadows

Explanation:

Help! Please?? Am stuck on this

Answers

Answer:

Both B and C are correct.

Explanation:

In any case, you want the OR (age ≥ 18) in there, because that makes the expression true for people 18 and up. So that already disqualifies answer D.

The most precise answer is B, since it literally states the requirements.

A is incorrect, because learners can be 1 as well, and the age can be 18 as well, so you need ≥ in stead of >.

C is interestingly also correct. The left hand side of the OR would be true for ages over 16 or 17, but that's OK in this case.

Help!!!! Arrays 100 points

Answers

Answer:

2 weeks ago so i think your doe with the quiz

Explanation:

Answer:

i hate to do this but I'm desperate.

Explanation:

you have no keywords in the question and this was months ago, these points are just going to waste and I need them, sorry & thanks

Which of the following is a distraction that you find when photographing animals at the zoo?

Fences
Enclosure glass
Other people
All of the above

Answers

Answer:

D all of the above

Explanation:

because fences, enclosure glass, and other people are all distracting from the real focus which is the animal.

Please Mark brainliest and give 5 star.

Answer:

All of the above (I did the test and got it right)

Explanation:

what is your favorite coler and what do you like to do and

Answers

Answer:

Orange

Explanation:

I like orange because its vibrant.

the most common threats to your computer and your online safety come from what is called ____

Answers

Answer:

VIRUSES

Explanation:

Answer:

A Malware

Explanation:

Would it be easier to divide/fold a rectangular sheet of paper into 6 equal pieces or 7 equal pieces? Explain your answer.

Answers

6 i’m guessing bc it would be harder to fold something into an odd number of pieces

is this right or not???????????

Answers

I think it’s true Bc some people may use different techniques

Answer:

yes you are correct

Explanation:

to gain a deeper understanding of a text, students should

Answers

Answer:

Should explain what they learned, be able to explain what is happening in great detail, and if its an informational text, then they should use what they learn and apply it in real life.

Explanation:

bcr is an out put device true or false​

Answers

Answer:

Hey mate....

Explanation:

This is ur answer......

True

Hope it helps!

mark me brainliest plz......

Follow me! :)

Answer:

False?

Explanation:

What does each row represent?
What distinguishes one record from another?
What should you choose as the primary key for
this table?

Answers

Answer:

I think this is your answer broski.

Explanation:

Answer:

a..c,,c

Explanation:

drop down on edge

can somebody help me with this plzzz, I watched the video but I don’t got it :’(

Answers

Answer:

n,

Explanation:

The answer is n. Hope this helps

You already know how to use lists. What is the index of 5 in the following list?
[2, 3, 5, 1, 6]
O 4
02
O 1
03

Answers

The answer is 1, the 3rd circle

ok im asking a legit question cuz the teacher asked us what our favorite game was and how to play it and also what youve don in it recently .... its homework so help me out

Answers

Answer:

Mario Baseball, its where you form a team of your favorite mario characters and play baseball against the other team! Its the best!

Explanation:

How can you rotate and resize your drawing?​

Answers

Answer:

Do one of the following:

To rotate the shape counterclockwise, on the Home tab, in the Arrange group, click Position, point to Rotate Shapes, and select Rotate Left 90º.

To rotate the shape clockwise, on the Home tab, in the Arrange group, click Position, point to Rotate Shapes, and select Rotate Right 90º

Answer:

By using the PICTURE application built into your computer, you can set a custom image editing type. It goes very easily from there

Explanation:

...

How to design remote access policy using the appropriate access controls for systems,applications, and data access

Answers

Answer:

All remote access users connect to the network and maintain all security standards on the device including

Valid and virus protection

Malware protection

Maintain the OS

Explanation:

The remote access policy applies to employees and other affiliates who owned devices to remotely access the Network CCC. The remote policy access connection is used to perform the work activities on the behalf of CCC. Remote access system, application and can be accessed with the internal CCC network. Example of application are as follow:

Internal Academic System

Internal websites

Documents files on internal file

Local colleges resources

Servers

Remote access will be managed by System Data Center and use security measures based on requirements.

Remote access is provided as an extension of the normal work environment.

Review the CCC information technology for protecting information via the remote method.

The employee will use remote procedures. Employees disclose the passwords and if the business is conducted from home.

All remote access includes a "time-out" system. In accordance with CCC and will time out the specified period of inactivity.

The access users accept the access and connection to networks and monitored to record dates, time. Identify accounts and have been compromised by external parties.

The remote access user may be listed in the remote access application.

Other Questions
Answers^^^Match each of these words with the phrase that best defines itkamikazeto place something or someone in aposition that is difficult to changestrongholdto cause someone to lose hopeatomic bomba Japanese pilot who attempted tocrash his plane into an enemy shipdemoralizea secure placeentrencha powerful bomb that splits an atomof uranium or plutoniumCorrect!Dann Why was the Mormon settlement of Salt Lake City successful?O Mormons abstained from alcohol and tobacco.O Mormons believed in polygamy and prophecy.O Mormons believed in community and hard work.O Mormons used slavery and forced labor. Which is a correct set of values of m for one of the subshells of n = 2?1, 0, 11, 2, 0, 1, 21, 2, 3, 0, 1, 2, 31, 2, 3, 4, 0, 1, 2, 3, 4 Which of these was a primary reason Quanah Parker resisted negotiationsbetween Texas and the federal government? No, the answer is to set the flash button to flash off 0. What is centripetal accleration?Derive relation for it An electric range burner weighing 699.0 grams is turned off after reaching a temperature of 482.0C, and is allowed to cool down to 22.7C.Calculate the specific heat of the burner if all the heat evolved from the burner is used to heat 560.0 grams of water from 22.7C to 80.3C. J/gC Here is another expression: 3 2y6. Evaluate the expression when y is 2.Answer7. Evaluate the expression when y is 7. AnswerThe dot is Times How did the Japanese imperial court contribute to the development of a national culture during the Heian period?It forced citizens to practice certain religious customs.It passed laws about how citizens should dress and speak.It conquered neighboring peoples and drew from their cultures.It ran the government, which allowed it to promote art and literature. Behavior is produced in living things through the combination of which 2 major influences can someone please help me with these!! ill make you a brainily PLEASE ONLY ANSWER IF YOU ARE COMPLETELY SURE OF YOUR ANSWER!! When shooting a basketball, your non-dominant hand is on the side of the ball, why?A. To hold the ball steadyB. You don't use your non-dominant hand when shootingC. To help "guide" the ball when shootingD. Your non-dominant hand is under the ball Don't we just love geometry! Speaking of that, I need some help!Please only answer if you know the answer, the comment section is right below. Please don't waste my points!Also, please show all of your work, you are trying to help me better understand the concept, not just give me the answer.The image is down below. Show work! Thanks! find the area of the figure below what is the meaning of ought does anyone know the answer??? 5th grade math. Correct answer will be marked brainliest. can I know who is this????? What two chromosomes do males have for gender?A.Sperm cells do not contain sex chromosomes.B.X and Y chromosomesC.X chromosomesD.Y chromosomes A certain concentration of water in the air is needed for the reactions that cause wood to decay. Furniture can rot away very quickly in the jungle Furniture high in the mountains usually does not rot easily. This data table shows the rates of decay for a wooden chair to rot away. What can you conclude about the rates of these reactions? Object Location Decay time Average concentration of water in the air Wooden chair Very low 300 to 500 years Rocky mountaintop Wooden chair Jungle High 5 to 20 years O A. Reactions occur at the same rate, no matter what the concentration of water in the air. O B. Reactions occur more quickly in air with a high concentration of water. O C. Reactions occur more slowly in air with a high concentration of water D. There is not enough information to conclude anything about the reaction rates