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
20. It is important to keep a copy of your written plan and safety records off-site.
Verdich [7]

Answer:

A

Explanation:

Incase you need to re-read or you need to refresh your memory.

Also, Incase something happens, you will have the rules and guidelines.

4 0
3 years ago
Example 1: the two dimensional points P1(0,0) and P2(1,0) and the two tangents P', (1,1) and P2 (0,-1).find the equation of the
Stells [14]

Answer: (0,0)+ (1,0)= 1 lines upwards( suggesting that this is a line graph not saying it is but as an example) an (1,1) and (0,-1) all make a small square ( as this is a 2 dimensional graph that it has a negative side too,(below the positive side)) i hope this helps and is what you are looking for

Explanation:

6 0
3 years ago
What are some tasks commonly performed in Environmental Service Systems jobs? Check all that apply.
lorasvet [3.4K]

Answer: a,c,d,f

Explanation:

5 0
4 years ago
A liquid water turbine receives 2 kg / s water at 2000 kPa, 20°C with a velocity of 15 m / s . The exit is at 100 kPa, 20°C, a
sveta [45]

Peppa Pig sjsjssjssjsjsjsjsjssjjsss

3 0
3 years ago
Plz solve the problem
julsineya [31]
I attached a photo that explains and gives the answer to your questions. Had to add a border because the whole picture didn’t fit.

6 0
4 years ago
Other questions:
  • Electric heater wires are installed in a solid wall having a thickness of 8 cm and k=2.5 W/m.°C. The right face is exposed to an
    5·2 answers
  • Rearrange the formula to make “u” the subject. <br><br> v - u<br> ——— = t<br> a
    15·1 answer
  • Two 2.30 cm × 2.30 cm plates that form a parallel-plate capacitor are charged to ± 0.708 nC . Part A What is the electric field
    7·1 answer
  • Moist air at 27 deg C, 1atm, and 50% relative humidity enters an evaporative cooling unit operating at steady state consisiting
    6·1 answer
  • A 400 kg machine is placed at the mid-span of a 3.2-m simply supported steel (E = 200 x 10^9 N/m^2) beam. The machine is observe
    14·1 answer
  • A particle moves along a straight line such that its acceleration is a=(4t^2-2) m/s, where t is in seconds. When t = 0, the part
    6·1 answer
  • g An analog voice signal, sampled at the rate of 8 kHz (8000 samples/second), is to be transmitted by using binary frequency shi
    12·1 answer
  • While discussing armature testing: Technician A says to test for shorts, place the ohmmeter leads on a commutator segment and ar
    6·1 answer
  • Is the housekeeping satisfactory? ​
    10·2 answers
  • Is the pure fission bomb a nuclear bomb?
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!