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), 24.06.2019 03:00
William poole believes economics should be taught in schools because students will learn
Answers: 1
question
Advanced Placement (AP), 24.06.2019 03:30
Hurry: the angle measures associated with which set of ordered pairs share the same reference angle? (-square-root 3/2, 1/2) , (-1/2, -square-root 3/2) (1/2, -square-root 3/2) , (-square-root 3/2, 1/2) (-1/2, -square-root 3/2), (1/2, square-root 3/2) (square-root 3/2, 1/2) , (1/2, square-root 3/2)
Answers: 1
question
Advanced Placement (AP), 24.06.2019 21:30
The hidden observer theory of hypnosis emphasizes the role of hypnosis. a) habituation b) suggestion effect c) dissociation
Answers: 2
question
Advanced Placement (AP), 25.06.2019 15:00
Ahypothesis test is conducted with a significance level of 5%. the alternative hypothesis states that more than 65% of a population is right-handed. the p-value for the test is calculated to be 0.03. which of the following statements is correct? we can conclude that more than 3% of the population is right-handed. we cannot conclude that more than 65% of the population is right-handed. we can conclude that more than 65% of the population is right-handed. we can conclude that exactly 3% of the population is right-handed. there is not enough information given to make a conclusion.
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
Mathematics, 21.11.2019 20:31
question
English, 21.11.2019 20:31
question
Business, 21.11.2019 20:31
Questions on the website: 13722360