subject
Advanced Placement (AP), 25.03.2020 05:46 Ladyt916

Consider the following code segment, which is intended to store the sum of all multiples of 10 between 10 and 100, inclusive (10 + 20 + ... + 100), in the variable total.

int x = 100;

int total = 0;

while( /* missing code */ )

{

total = total + x;

x = x - 10;

}

Which of the following can be used as a replacement for /* missing code */ so that the code segment works as intended?

A. x < 100

B. x <= 100

C. x > 10

D. x >= 10

E. x != 10

ansver
Answers: 1

Another question on Advanced Placement (AP)

question
Advanced Placement (AP), 25.06.2019 20:00
10. in 2009, roughly of people age 12 or older who did not drink alcohol were current users of illegal drugs. a. 4% b. 10% c. 13% d. 20%
Answers: 1
question
Advanced Placement (AP), 26.06.2019 02:10
Camila took an interest inventory in her career explorations class. read her description of the results of the assessment. which two phrases clearly reveal her career interests? when i took the interest inventory in my career explorations class, it revealed that even though i really value the (1.) balance between work and home life, i like an (2.) engaging atmosphere at work, where i can stay busy. based on my (3.) fascination with technology, i should work in a field with computers. based on my (4.) attraction to working with mechanics, i should be working with machines. this leads me to believe that i should be working in robotics, which sounds like a lot of fun! (options are listed with the numbers 1-4)
Answers: 1
question
Advanced Placement (AP), 26.06.2019 03:30
Question 4 which was a foundation of the industrial revolution? a) large states held huge supplies of raw materials. b) coal replaced wood as the primary source of fuel. c) road infrastructure replaced waterways for transport. d) mercantilist policies drove down the price of goods. question 7 which was not a government response to the socialist challenges? a) establishing universal suffrage to all classes b) introducing medical insurance and pensions c) prohibiting underground employment for women d) restricting child labor for children under ten years old question 9 which was a cause of the boer war? a) movement and settlement of bantu peoples into afrikaner-populated states b) independence of northern afrikaner territories from british colonial authority c) evacuation of most afrikaner people out of south africa and back into europe d) british reconstitution of afrikaner-held territories into the union of south africa
Answers: 3
question
Advanced Placement (AP), 26.06.2019 21:40
The biopsychosocial perspective is best described as focused on the subconscious mind. based more on genetics than environment in explaining human behavior. a complete approach to explaining human behavior. the first major perspective in psychology. a one-dimensional approach to explaining human behavior.
Answers: 2
You know the right answer?
Consider the following code segment, which is intended to store the sum of all multiples of 10 betwe...
Questions
question
Chemistry, 20.07.2020 01:01
Questions on the website: 13722360