subject
Computers and Technology, 23.11.2019 00:31 lam21

Assume an int array, candy, stores the number of candy bars sold by a group of children wherecandy[j] is the number of candy bars sold by child j. assume there are 12 children in all. which of the following code could be used to compute the total number of bars sold by the children? a) for(int j=0; j< 12; j++) sum+= candy[j]; b) for(int j=0; j< 12; j++) candy[j] = sum; c) for(int j=0; j< 12; j++) sum = candy[j]; d) for(int j=0; j< 12; j++) sum += [j]; e) for(int j=0; j< 12; j++) [j] += sum;

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 06:30
Selective incapacitation is a strategy to reduce prison population
Answers: 3
question
Computers and Technology, 22.06.2019 10:00
Businesses allocate resources for their best and most productive uses. the more a resource, the more costly it will be. a manufacturer that requires scarce and costly resources is likely to charge for its products.
Answers: 2
question
Computers and Technology, 22.06.2019 21:00
Ulia is planning to attend the same private four-year college her parents attended. she wants to save at least $18,000 in four years to contribute to her college education. which monthly deposit amounts can julia use to achieve her goal? check all that apply.
Answers: 2
question
Computers and Technology, 23.06.2019 04:31
Jennifer has to set up a network in a factory with an environment that has a lot of electrical interference. which cable would she prefer to use? jennifer would prefer to use because its metal sheath reduces interference.
Answers: 1
You know the right answer?
Assume an int array, candy, stores the number of candy bars sold by a group of children wherecandy[j...
Questions
Questions on the website: 13722359