subject

Given that two int variables, total and amount, have been declared, write a loop that reads non-negative values into amount and adds them into total. The loop terminates when a value less than 0 is read into amount. Don't forget to initialize total to 0. Instructor Notes: Be sure to complete exercises 10087 and 10088 before attempting 10089. "Reads non-negative values into amount" means that values are read (input) into amount from stdin. As long as a given input value is non-negative, the code keeps adding the result into total. But, if a negative value is read, then the loop terminates, without adding that negative result into total. The negative value is known as a "sentinel" value, which means a value that signals something rather than having a quantitative meaning.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 18:30
Kto rozmawia z clamentain przez krótkofalówke w the walking dead w 4 epizodzie
Answers: 1
question
Computers and Technology, 23.06.2019 12:00
Which of these is a benefit of using objects in a powerpoint presentation? a. collaborators can create the external files while you create and edit the slide show. b. you can easily change the theme and design of the presentation. c. you can have older data in the source file while having up-to-date data in the presentation. d. collaborators can easily share the presentation.
Answers: 2
question
Computers and Technology, 23.06.2019 13:50
Explain how email technologies enable the exchange of messages between users. find out the typical parts of an email address and explain each part.
Answers: 1
question
Computers and Technology, 24.06.2019 01:00
Answer these and get 40 points and brainliest
Answers: 1
You know the right answer?
Given that two int variables, total and amount, have been declared, write a loop that reads non-nega...
Questions
question
Biology, 26.06.2019 11:00
question
History, 26.06.2019 11:00