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
Cuales son los accesorios electronicos mas recomendados?
Aleonysh [2.5K]
Los i-phone y iPad. Esto porque son los más rápidos y te los puedes traer a más lugares.
7 0
4 years ago
Is media good for the brain?
skad [1K]

Of course yes, and that depends of the type of content that you eaten =D

Media is a source of good information for to create your opinion.

Best regards

7 0
3 years ago
Read 2 more answers
Evaluate and compare free and commercial versions of the Avast antivirus software
Ivan

Answer:

Explanation:

Explanation:

Explanation:

Explanation:

Explanation:

Explanation:

8 0
2 years ago
The function below takes two numeric parameters. The first parameter specifies the number of hours a person worked and the secon
Triss [41]

Answer:

def calculate_pay(total_worked_hours, rate_per_hour):

   if total_worked_hours > 40:

       return (40 * rate_per_hour) + ((total_worked_hours - 40) * 2 * rate_per_hour)

   else:

       return total_worked_hours * rate_per_hour

Explanation:

  • Create the calculate_pay function that takes 2 parameters.
  • Inside the function check whether the total_worked_hours is greater than 40 and then return the pay by calculating with the help of formula for work over 40 hours.
  • Otherwise return the pay by multiplying the total_worked_hours with rate_per_hour.
6 0
3 years ago
What is one advantage of hard-disk recording?
NemiM [27]

Answer:

It allows for Non-linear editing

7 0
3 years ago
Other questions:
  • A geologist is part of what career feild
    6·1 answer
  • Hi I am Khine Mye and I want to ask you a question I don't know that is square root of 2 is 1.4 and how to get that 1.4 and plz
    8·1 answer
  • An array of integers named parkingTickets has been declared and initialized to the number of parking tickets given out by the ci
    14·1 answer
  • Which statements accurately describe the Bookmark feature in the Audio/Video control bar? Check all that apply.
    13·1 answer
  • Kevin needs to get his data from a database into a text file to send to another group. He needs to _____.
    12·2 answers
  • Can anyone help me this is due today :) <br> Thank you so much
    14·2 answers
  • What Is entered into the system as input?
    13·1 answer
  • It is usually simple to delete old posts and online conversations if they make you look bad.
    5·1 answer
  • PLEASE HELP ME!!!
    13·1 answer
  • A network consists of 75 workstations and three servers. The workstations are currently connected to the network with 100 Mbps s
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!