1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Mekhanik [1.2K]
3 years ago
7

assume an int array, candy, stores the number of candy bars sold by a group of children wherecandy[j] is the number of candy bar

s 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;
Computers and Technology
2 answers:
True [87]3 years ago
8 0

Answer:

it is A

Explanation:

GuDViN [60]3 years ago
5 0

Answer:

The first one. Important notice sum should be equal to zero before calculating the total sum.

You might be interested in
describe how sodium ammonium chloride can be separated from a solid mixture of ammonium chloride and anhydrous calcium chloride​
kirill115 [55]

Answer:

There are way in separating mixtures of chlorides salts such as that of sodium chloride and ammonium chloride. It can be done by crystallization, filtration or sublimation. If we want to separate the mixture, we have to heat up to 330-350 degrees Celsius and collect the gas that will be produced.

5 0
3 years ago
When using Identify from the IPDE cycle, you are trying to _____.
Thepotemich [5.8K]

B) observe hazards in your environment.

8 0
3 years ago
Read 2 more answers
What line has the bug?
gtnhenbr [62]

Answer:

14

Explanation:

there is never { to start the code

7 0
3 years ago
Read 2 more answers
What contains the computer's "brain," the central processing unit (CPU).
vodomira [7]

The computer brain is a microprocessor called the central processing unit (CPU). The CPU is a chip containing millions of tiny transistors.

6 0
3 years ago
What is Automation and what does it mean
Phantasy [73]
Automation is the use of automatic equipment in a manufacturing or other process or facility.
6 0
4 years ago
Read 2 more answers
Other questions:
  • You have connected thirteen pcs and laptops to a wireless network. to make your wlan more secure, what should you do to disallow
    11·1 answer
  • In which of the following stages of the development process is a team MOST likely to interview a potential user of an app?
    6·1 answer
  • Integrity is keeping data consistent and free of errors or anomaliea<br> True or false
    7·1 answer
  • What are the defenses to protect against these attacks?
    13·1 answer
  • What is the operation of mouse in which it is moved while holding left button.​
    11·2 answers
  • Select all the ways in which business professionals might use a spreadsheet in their jobs.
    15·1 answer
  • Switched backbone networks:_____.a. always use a ring topology.b. require much more management that do routed backbone networks.
    10·1 answer
  • Which types of file formats are the best choice for files that may need to be edited later?
    14·1 answer
  • Nd the errors in the following sentences. Underline with a red colour for
    9·1 answer
  • The (blank) option will help determine the overall look of her presentation.
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!