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
There are little to no benefits to supplementary field identification programs
VashaNatasha [74]

Answer:

True, supplementary field identification programs tend to limit the use of routine programs that target service delivery using routine systems.

Explanation:

When supplementary field identification programs are applied in a study, they have damaging effects to other systems and programs already in progress targeting certain/similar variables in a study group.Such programs are initiated to boost the already existing systems of programs that are in continuous application( routine basis). As a supplement , we expect more positive results in the rates per the variables included in a study.However, results has proved the opposite.For example, supplementary immunization activities applied in programs targeting demographic and health systems services reveled that such programs reduce the probability of receiving the services provided by other routine health systems conducting continuous vaccination programs to the target groups.

4 0
4 years ago
a valueable preserved biological specimen is weighed by suspeding it from a spring scale. it weighs 0.45 N when it is suspendedi
Dmitry_Shevchenko [17]

Answer:

ρ=962.16kg/m^3

Explanation:

The first thing we must do to solve is to find the mass of the specimen using the weight equation

w = mg

m=w/g

m=0.45/9.81=0.04587kg

To find the volume we must make a free-body diagram on the specimen, taking into account that the weight will go down and the buoyant force up, and the result of that subtraction will be the measured weight value (0.081N).

We must bear in mind that the principle of archimedes indicates that the buoyant force is given by

F = ρgV

where V is the specimen volume and  ρ is the density of alcohol = 789kg / m ^ 3

considering the above we have the following equation

0.081=0.45-(789)(9.81m/s^2)V

solving for V

V=(0.081-0.45)/(-789x9.81)

V=4.7673x10^-5m^3

finally we found the density

ρ=m/v

ρ=0.04587kg/4.7673x10^-5m^3

ρ=962.16kg/m^3

4 0
4 years ago
The absolute pressure in water at a depth of 9 m is read to be 185 kPa. Determine: a. The local atmospheric pressure b. The abso
ser-zykov [4K]

Answer:

a)Patm=135.95Kpa

b)Pabs=175.91Kpa

Explanation:

the absolute pressure is the sum of the water pressure plus the atmospheric pressure, which means that for point a we have the following equation

Pabs=Pw+Patm(1)

Where

Pabs=absolute pressure

Pw=Water pressure

Patm= atmospheric pressure

Water pressure is calculated with the following equation

Pw=γ.h(2)

where

γ=especific weight of water=9.81KN/M^3

H=depht

A)

Solving using ecuations 1 y 2

Patm=Pabs-Pw

Patm=185-9.81*5=135.95Kpa

B)

Solving using ecuations 1 y 2, and atmospheric pressure

Pabs=0.8x5x9.81+135.95=175.91Kpa

8 0
4 years ago
A Medical Bioengineering student is tasked with performing signal analysis.
inna [77]

Answer: I will ask my dad he knows

Explanation:

7 0
4 years ago
A. How is a decision matrix useful during the
Alinara [238K]

Answer:

The Decision Matrix

As you compare potential solutions to your design brief and the universal criteria for a good design, it may be obvious which solution is the best. ... A decision matrix is a chart with your requirements and criteria on one axis and the different solutions on the other.

5 0
3 years ago
Other questions:
  • A soil sample 90 mm high and 6000 mm2 in cross section was subjected to a falling head permeability test. The head fell from 500
    7·1 answer
  • A battery is an electromechanical device. a)- True b)- False
    6·1 answer
  • You are ordering steel cable for a 250 foot long zip-line you are building in your back yard. The cable can be ordered in diamet
    6·2 answers
  • *6–24. The beam is used to support a dead load of 400 lb&gt;ft, a live load of 2 k&gt;ft, and a concentrated live load of 8 k. D
    13·1 answer
  • An automobile travels along a straight road at 15.65 m/s through a 11.18 m/s speed zone. A police car observed the automobile. A
    9·1 answer
  • A closed rigid tank contains water initially at 10,000 kPa and 520ºC and is cooled to a final temperature of 270° C. Determine t
    9·1 answer
  • How does Accenture generate value for clients through Agile and DevOps?
    15·2 answers
  • Who wants fight with me
    11·1 answer
  • Need help, I will give cake :))<br><br> + branliest
    14·2 answers
  • Find the volume of water displaced and position of center of buoyancy for a wooden block of width 2.5m and of depth 1.5m. When i
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!