Computers and Technology
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;

answer
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 13:50, mrfishyyyy
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
image
Computers and Technology, 23.06.2019 22:00, elijah1090
Technician a says engine assemblies can be mounted longitudinally in a chassis. technician b says engine assemblies can be mounted transversely in a chassis. who is correct?
Answers: 2
image
Computers and Technology, 24.06.2019 15:50, GreatBaconGamer
Subscribe to j p g a m e t u b e on you tube ?
Answers: 2
image
Computers and Technology, 24.06.2019 18:00, aleyshamar14p95561
Your computer running windows 10 is doing some very strange things with the operating system. you are fairly certain it is not a hardware issue. you need to try to get further insight into what is going on within the operating system. which tool would be best-suited for this?
Answers: 1
Do you know the correct answer?
Assume an int array, candy, stores the number of candy bars sold by a group of children wherecandy[j...

Questions in other subjects:

Konu
French, 30.12.2020 05:30
Konu
Mathematics, 30.12.2020 05:30