Computers and Technology
Computers and Technology, 12.02.2021 06:20, kailaaap

Write a while loop to calculate the sum of all the numbers the user inputs, until they put in -1. This means you will need to keep asking the user for a number to add to the sum until they put it in -1.

Sample Run:
Put in your number to add: 3
Your sum is 3.
Put in your number to add: 11
Your sum is 14.
Put in your number to add: 15
Your sum is 29.
Put in your number to add: -1

answer
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 10:00, banna01man
You need a reliable network for about twenty-five computers that will be distributed across a large building. it is important that the network be relatively cheap. which topology should you use?
Answers: 1
image
Computers and Technology, 22.06.2019 18:30, ovoxotas
Which of the following commands is more recommended while creating a bot?
Answers: 1
image
Computers and Technology, 22.06.2019 19:30, bstine6678
When creating a presentation in libre office impress, where does the editing of slides take place? a. the slides panel b. the center panel c. the tasks panel, under the masters pages tab d. the tasks panel, under the layouts tab
Answers: 1
image
Computers and Technology, 23.06.2019 15:30, jokerr6323
1. ask the user how many questions are in the quiz. 2. ask the user to enter the key (that is, the correct answers). there should be one answer for each question in the quiz, and each answer should be an integer. e. g., 34 7 13 100 81 3 9 10 321 12 might be the key for a 10-question quiz. you will need to store the key in an array. 3. ask the user to enter the answers for the quiz to be graded. there needs to be one answer for each question. note that these answers do not need to be stored; each answer can simply be compared to the key as it is entered. 4. when the user has entered all of the answers to be graded, print the number correct and the percent correct. 5. add a loop so that the user can grade any number of quizzes with a single key. after the results have been printed for each quiz, ask "grade another quiz? (y/n)." note: you only have one array (the key). you are not creating a new key for each set of quiz answers.
Answers: 3
Do you know the correct answer?
Write a while loop to calculate the sum of all the numbers the user inputs, until they put in -1....

Questions in other subjects:

Konu
Mathematics, 01.03.2021 22:50
Konu
Chemistry, 01.03.2021 22:50
Konu
English, 01.03.2021 22:50