subject

Ask the user how many numbers for which they want to calculate the sum. Using a for loop, prompt the user to enter that many numbers, one-by-one, keeping track of the sum. At the end, after the user entered all numbers, output the sum. Create a variable and assign it the value of 0
Prompt the user for how many numbers they have
With a for loop, set it to repeat enough times to get all their values
Prompt the user for a number
Add that number to the variable that started as 0
Output to the user, the sum of all values

ansver
Answers: 2

Another question on Advanced Placement (AP)

question
Advanced Placement (AP), 23.06.2019 06:00
Here is a quote from an npr news article: “on average, working-age adults were eating about 78 fewer calories per day in 2010, compared with five years earlier. the new report is based on data from the national health and nutrition examination survey, which collects details on eating habits and other health-related information from a nationally representative sample of about 10,000 people in the u.s.” which of the following is true about the numerical value 78? a. it is an anecdote. b. it is a parameter. c. it is a simulation. d. it is a statistic.
Answers: 1
question
Advanced Placement (AP), 23.06.2019 16:00
After they make styrofoam, what do they ship it in? before they invented drawing boards, what did they go back to? do infants enjoy infancy as much as adults enjoy adultery? why do irons have a setting for permanent press? how can you tell when sour cream goes bad? how much sin can i get away with and still go to heaven? how young can you die of old age? can you be arrested for selling illegal-sized paper? if all the nations in the world are in debt, where did all the money go? if work is so terrific, how come they have to pay you to do it? if the number 2 pencil is the most popular, why is it still number 2? if you ate pasta and anti-pasta, would you still be hungry? if you try to fail, and succeed, which have you done? if you steal a clean slate, does it go on your record? if you were going to shoot a mime, would you use a silencer? if you're born again, do you have two belly buttons? what if there were no hypothetical situations? where would we be without rhetorical questions? will your answer to this question be no? if man evolved from monkeys and apes, why are there still monkeys and apes? if a man is standing in the middle of the forest speaking and there is no woman around to hear him, is he still wrong? is there another word for synonym? isn't it a bit unnerving that doctors call what they do "practice? " could crop circles be the work of a cereal killer? if you choke a smurf, what color will it turn?
Answers: 1
question
Advanced Placement (AP), 25.06.2019 02:00
Look back at act iv scene v to read over ophelia’s interactions with claudius and gertrude as well as laertes. then, compare her dialogue to hamlet’s dialogue and soliloquies previously analyzed in acts i–iv. what is ophelia’s state of mind versus hamlet’s?
Answers: 1
question
Advanced Placement (AP), 25.06.2019 17:30
Poland had achieved self government and can enjoy its since the collapse of the soviet union a: autonomy b: ingenuity c: feminismd: genocide
Answers: 1
You know the right answer?
Ask the user how many numbers for which they want to calculate the sum. Using a for loop, prompt the...
Questions
question
English, 19.04.2021 18:40
question
Mathematics, 19.04.2021 18:40
question
Mathematics, 19.04.2021 18:40
question
Mathematics, 19.04.2021 18:40
question
English, 19.04.2021 18:40
question
Mathematics, 19.04.2021 18:40
question
Mathematics, 19.04.2021 18:40
Questions on the website: 13722359