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, 23.06.2019 20:00
Match the file formats with the types of multimedia they can store
Answers: 2
question
Computers and Technology, 24.06.2019 21:30
How do i copy and paste equations and pictures like math graphs, to post on this site to get my questions answered?
Answers: 2
question
Computers and Technology, 25.06.2019 05:30
Website hosting servers have their own unique ip address, what does this address consist of? a. numbers and letters b. numbers c. letters d. letters and symbols
Answers: 2
question
Computers and Technology, 25.06.2019 05:50
Acolor class has three public, integer-returning accessor methods: getred, getgreen, and getblue, and three protected, void-returning mutator methods: setred, setgreen, setblue, each of which accepts an integer parameter and assigns it to the corresponding color component. the class, alphachannelcolor-- a subclass of color-- has an integer instance variable, alpha, containing the alpha channel value, representing the degree of transparency of the color. alphachannelcolor also has a method named dissolve (void-returning, and no parameters), that causes the color to fade a bit. it does this by incrementing (by 1) all three color components (using the above accessor and mutator methods) as well as the alpha component value. write the dissolve method.
Answers: 2
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
question
Mathematics, 19.05.2020 14:09
question
Mathematics, 19.05.2020 14:09
question
Mathematics, 19.05.2020 14:09
Questions on the website: 13722361