subject
Advanced Placement (AP), 25.01.2022 01:50 shay8850

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

Other questions on the subject: Advanced Placement (AP)

image
Advanced Placement (AP), 22.06.2019 22:20, EnzoF17
Astudent who takes a multiple-choice test by reading the stem of each item, generating the correct response before looking at the choices, and then chooses the response closes to the answer is using a. a heuristic b. an algorithm c. vicarious problem-solving d. means-end analysis
Answers: 1
image
Advanced Placement (AP), 23.06.2019 09:30, TookMurr
Which statement describes absolute and apparent brightness? absolute brightness and apparent brightness are identical ways to describe the brightness of a star. absolute brightness and apparent brightness change with the distance from the star to the observer. absolute brightness depends on the distance from the star to the observer, whereas apparent brightness is always the same. absolute brightness is the actual amount of light produced by the star, whereas apparent brightness changes with distance from the observer.
Answers: 1
image
Advanced Placement (AP), 23.06.2019 12:00, ineedtopeebeforethec
Activity 1.3.2 standard and metric measuring pltw
Answers: 1
image
Advanced Placement (AP), 24.06.2019 08:00, carsondelane13
The color contrast between the open ocean and the lagoon between the spit and the mainland. the greater concentration of suspended sediments in the lagoon gives the waters a more turbid appearance. the source of sediment in the lagoon is (are) [(rivers and streams from the mainland) (wind-borne sediment from the spit) (ocean waves washing over the spit) (all of these contribute)].
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 in other subjects:

Konu
Mathematics, 08.01.2021 18:10
Konu
History, 08.01.2021 18:10