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: 1

Another question on Advanced Placement (AP)

question
Advanced Placement (AP), 25.06.2019 21:00
Identify one way in which the changes during the industrial revolution can be considered a political turning point in world history
Answers: 1
question
Advanced Placement (AP), 26.06.2019 18:00
What property does soil or rock need to be permeable? a.)young b.)old c.)non porous d.)porosity
Answers: 1
question
Advanced Placement (AP), 26.06.2019 23:30
What can you conclude if data from a study agree with the result predicted by the hypothesis? a. the data must contain systematic errors. b. the data show that the hypothesis could be true. c. the data are unrelated to the hypothesis. d. the data prove that the hypothesis is false.
Answers: 1
question
Advanced Placement (AP), 27.06.2019 07:30
What is the tychonic system? a. a model of the solar system in which all the planets (including earth) orbit the sun b. a model of the solar system in which the planets, moon, and sun orbit earth c. a model of the solar system where the planets orbit the sun, and this system orbits earth d. a model where all the planets and earth are fixed in space and only the sun and moon move e. a model that expands the system to a vast number of galaxies and star systems
Answers: 2
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, 28.08.2019 22:50
question
Geography, 28.08.2019 22:50
question
Chemistry, 28.08.2019 22:50
question
Mathematics, 28.08.2019 22:50
question
Mathematics, 28.08.2019 22:50
question
Health, 28.08.2019 22:50
Questions on the website: 13722360