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 20:00
Awide variety of “ apps “ are available to customize devices. which category of app does the word processing software fall into?
Answers: 2
question
Computers and Technology, 23.06.2019 06:30
Which option correctly describes a dbms application? a. software used to manage databases b. software used to organize files and folders c. software used to develop specialized images d. software used to create effective presentations
Answers: 1
question
Computers and Technology, 24.06.2019 01:30
Could you find out how im still getting an 83 percent on this in edhesive a = input("enter an animal: ") s = input ("enter a sound: ") e = "e-i-e-i-o" print ("old macdonald had a farm, " + e) print ("and on his farm he had a " + a + "," + e) print ("with a " + s + "-" + s + " here and a " + s + "-" + s + " there") print ("here a " + s+ " there a " + s) print ("everywhere a " + s + "-" + s ) print ("old macdonald had a farm, " + e)
Answers: 2
question
Computers and Technology, 24.06.2019 13:00
Which best describes the condition under which the unicode output is the same as plain text ?
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
question
Mathematics, 04.03.2022 22:40
question
History, 04.03.2022 22:50
question
Mathematics, 04.03.2022 23:00
Questions on the website: 13722363