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
alexgriva [62]
3 years ago
14

Write a function called arraySum() that takes two arguments: an integer array and the number of elements in the array. Have the

function return as its result the sum of the elements in the array
Engineering
1 answer:
Oduvanchick [21]3 years ago
5 0

Answer:

//Function is written using C++ Programming Language

// Comments are used for explanatory purpose

// The main method is not included

using namespace std;

// Declare arraySum with two arguments. The first represents the array name while the other

// Represents the number of elements

int arraySum(int arr[], int n)

{

int total = 0; // declare and Initialise total to 0

// Iterate through the array to calculate sum

for (int i = 0; i < n; i++) {

total += arr[i];

}

return total;

}

You might be interested in
The angle of twist can be computed using the material’s shear modulus if and only if: (a)- The shear stress is still in the elas
ollegr [7]

Answer:

The angle of twist can be computed using the material’s shear modulus if and only if the shear stress is still in the elastic region

Explanation:

The shear modulus (G) is the ratio of shear stress to shear strain. Like the modulus of elasticity, the shear modulus is governed by Hooke’s Law: the relationship between shear stress and shear strain is proportional up to the proportional limit of the material. The angle of twist can be computed using the material’s shear modulus if and only if the shear stress is still in the elastic region.

3 0
4 years ago
What is the gear ratio of the given train
Olin [163]

Answer:

1/4

Explanation:

.......................

7 0
3 years ago
What do we need to do to get CO2 emissions all the way to zero?
Svetlanka [38]

Answer:

A key element is powering economies with clean energy, replacing polluting coal - and gas and oil-fired power stations - with renewable energy sources, such as wind or solar farms. This would dramatically reduce carbon emissions. Plus, renewable energy is now not only cleaner, but often cheaper than fossil fuels

Explanation:

here is your answer if you like my answer please follow

3 0
3 years ago
A TPMS (tire pressure monitoring system) instrument panel indicator lamp is on. Technician A says the most likely cause is low t
zheka24 [161]

Answer:

Actualmente estoy trabajando en una pregunta diferente en este momento.

Explanation:

Actualmente estoy trabajando en una pregunta diferente en este momento.

6 0
3 years ago
At a certain location, wind is blowing steadily at 10 m/s. Determine the mechanical energy of air per unit mass and the power ge
tangare [24]

Answer:

e= 50 J/kg

Explanation:

Given that

Speed ,v= 10 m/s

Diameter of the turbine = 90 m

Density of the air ,ρ = 1.25 kg/m³

We know that mechanical energy given as

E=\dfrac{1}{2}mv^2\ J

That is why mechanical energy per unit mass will be

e=\dfrac{1}{2}v^2\ J/kg

Now by putting the values in the above equation we get

e=\dfrac{1}{2}\times 10^2\ J/kg

e= 50 J/kg

That why the mechanical energy unit mass will be 50 J/kg.

5 0
3 years ago
Other questions:
  • Air is compressed adiabatically from p1 1 bar, T1 300 K to p2 15 bar, v2 0.1227 m3 /kg. The air is then cooled at constant volum
    13·1 answer
  • A market research survey has 15 questions and will be sent to 500 people. What is the total cost to conduct survey if it has a $
    12·1 answer
  • Before you calculate the moment capacity for a steel beam, you have to determine the classification of beam.
    10·1 answer
  • A moving-coil instrument, which gives full-scale deflection with 0.015 A has a copper coil having resistance of 1.5 Ohm at 15°C
    7·1 answer
  • Technician A says that a lack of lubrication on the back of the disc brake pads can cause brake noise. Technician B says that pa
    8·1 answer
  • How is the air delivery temperature controlled during A/C operation?
    8·1 answer
  • Which step in the engineering design process likely broke down in the following scenario?
    14·1 answer
  • An ideal Rankine cycle with reheat uses water as the working fluid. The conditions at the inlet to the first-stage turbine are p
    12·1 answer
  • How can I skip more helppppppppppppppppppppppp
    9·2 answers
  • The primary of an ideal transformer has 400 turns and its secondary has 200 turns. Neglecting electrical losses, if the power in
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!