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
A motor vehicle has a mass of 1200kg and the road wheels have a radius of 360mm. The engine rotating parts have a moment of iner
mihalych1998 [28]

Answer:

manda a senha do brainly bloquearam os amigos e você vai ver o meu perfil completo a minha amiga Jeciane estamos fazendo uma academia de lima e você vai ver o meu perfil completo a minha amiga Jeciane estamos completo a minha amiga Jeciane estamos fazendo uma academia de lima e você vai ver o meu perfil você vai ver o meu perfil você vai ver o meu perfil completo a minha amiga Jeciane estamos fazendo uma academia de lima e fazendo uma academia de lima e fazendo uma academia de lima e fazendo uma academia de lima e fazendo uma academia de lima e fazendo uma academia de lima e você vai ver o meu perfil completo a minha amiga Jeciane estamos fazendo

Explanation:

Marcar como melhor porfavo

6 0
3 years ago
Glyphicons is mainly used for​
-Dominant- [34]

Glyphicons are icon fonts which you can use in your web projects. Glyphicons Halflings are not free and require licensing, however their creator has made them available for Bootstrap projects free of cost.

7 0
2 years ago
If Ella decided to become a children’s doctor, what career cluster would she belong in?
vodomira [7]
D . Health Services
8 0
2 years ago
A certain piece of property is assessed at $150,000. If the tax rate is $2.50 per $100, what is the tax on this property?
stiks02 [169]

Answer:

The tax on this property is 3750 dollars

Explanation:

Given

Tax on per $100 is $2.50

Tax on every $1 is \frac{2.5}{100} = 0.025 dollars

Tax on property of value $150,000 is

150,000 * 0.025 = 3750 dollars

The tax on this property is 3750 dollars

7 0
3 years ago
A 600-MW steam power plant, which is cooled by a nearby river, has a thermal efficiency of 54 percent. Determine the rate of hea
Gennadij [26K]

Answer:

\dot Q _{L} = 511.111 MW. Heat transfer can be higher if themal efficiency is lower.

Explanation:

The heat transfer rate to the river water is calculated by this expression:

\dot Q_{L} = \dot Q_{H} - \dot W

\dot Q_{L} = (\frac{1}{\eta_{th}}-1 )\cdot \dot W\\\dot Q_{L} = (\frac{1}{0.54}-1)\cdot (600 MW)\\\dot Q _{L} = 511.111 MW

The actual heat transfer can be higher if the steam power plant reports an thermal efficiency lower than expected.

8 0
3 years ago
Other questions:
  • Water flows through two smooth pipes with the same diameter and length as shown below. ipe is twice that through the first-pipe.
    12·1 answer
  • Assume that price is an integer variable whose value is the price (in US currency) in cents of an item. Assuming the item is pai
    11·1 answer
  • Sublimation is to change from
    7·2 answers
  • If a barrel of oil weighs 1.5 kN, calculate the specific weight, density, and specific gravity of the oil. The barrel weighs 110
    7·1 answer
  • 4. At what temperature does an engine run cleanest with least wear?
    11·1 answer
  • 5
    15·1 answer
  • . Bơm kiểu piston tác dụng đơn có áp suất p=0,64 Mpa và lưu lượng Q=3,5 l/s. Xác định tốc độ quay của trục bơm và công suất của
    7·1 answer
  • A retail business, owned by share holders and having centralized decision making for their multiple store locations is called:
    13·1 answer
  • A tool used to put a concave edge on a plane iron is
    6·1 answer
  • How pine are processed ????
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!