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
ASAP correct answer plss When you are driving, if you see this traffic sign it means
vlabodo [156]

Answer:

C

Explanation:

5 0
3 years ago
Cast iron has about how much carbon content?
Aliun [14]

Answer:

c

Explanation:

7 0
3 years ago
Câu 1: Tìm từ trong 2 câu thơ sau liên quan đến các từ: hình chiếu, tia chiếu, mặt phẳng chiếu.
xeze [42]

Explanation:

are bhai brainly aap english me questions kar ne ko hai

ye kon si bhasha hai ??????

4 0
3 years ago
A lake has a carrying capacity of 10,000 fish. At the current level of fishing, 2,000 fish per year are taken with the catch uni
arlik [135]

Answer:

The population size would be p' = 5000

The yield would be    MaxYield = 2082 \ fishes \ per \ year

Explanation:

So in this problem we are going to be examining the application of a  population dynamics a fishing pond and stock fishing and objective would be to obtain the maximum sustainable yield and and the population of the fish at the obtained maximum sustainable yield,  so basically we would be applying an engineering solution to fishing

 

    So the current  yield which is mathematically represented as

                               \frac{dN}{dt} =   \frac{2000}{1 \ year }

 Where dN is the change in the number of fish

            and dt is the change in time

So in order to obtain the solution we need to obtain the  rate of growth

    For this we would be making use of the growth rate equation which is

                                      r = \frac{[\frac{dN}{dt}] }{N[1-\frac{N}{K} ]}

  Where N is the population of the fish which is given as 4,000 fishes

          and  K is the carrying capacity which is given as 10,000 fishes

             r is the growth rate

        Substituting these values into the equation

                              r = \frac{[\frac{2000}{year}] }{4000[1-\frac{4000}{10,000} ]}  =0.833

The maximum sustainable yield would be dependent on the growth rate an the carrying capacity and this mathematically represented as

                      Max Yield  = \frac{rK}{4} = \frac{(10,000)(0.833)}{4} = 2082 \ fishes \ per \ year

So since the maximum sustainable yield is 2082 then the the population need to be higher than 4,000 so in order to ensure a that this maximum yield the population size denoted by p' would be

                          p' = \frac{K}{2}  = \frac{10,000}{2}  = 5000\ fishes          

7 0
3 years ago
Read 2 more answers
D
TEA [102]

Answer:

true

Explanation:

4 0
3 years ago
Other questions:
  • An important ethical concern for behavior analysts involves special cautions in interactions with a client in any capacity outsi
    5·1 answer
  • Light energy produces the only voltage in a solar cell. (a)-True(T) (b)- false(F)
    9·1 answer
  • List two common units of measurement to describe height
    5·2 answers
  • Helium gas expands in a piston-cylinder in a polytropic process with n=1.67. Is the work positive, negative or zero?
    8·1 answer
  • What engine does the mercedes 500e have​
    5·1 answer
  • When Hailey participated in a tree plantation drive, she wore her most comfortable loungewear. However, the same attire was not
    11·1 answer
  • 5. The pin support at A allows _______. Select the one that applies. (a) displacement in the x direction (b) rotation about its
    15·1 answer
  • Connecting rods undergo a process to alleviate manufacturing stresses from forging, a process known as ______.​
    7·1 answer
  • Identify renewable energy sources you will propose. Explain the key elements to your solution and the basic technical principles
    5·1 answer
  • Nonconductive safety shoes can be safely worn in a potentially explosive environment.
    9·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!