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
Which of the following is not a function of the suspension system?_____
tatyana61 [14]
The awnser is D cause it is
4 0
3 years ago
Mnsdcbjksdhkjhvdskjbvfdfkjbcv hjb dfkjbkjfvvfebjkhbvefgjdf
Julli [10]

Answer:

ik true eedcggftggggfffff

8 0
3 years ago
Read 2 more answers
Re armature of a 4 pole DC generator is required to generate an emf of 520v on open circuit when revolving at a speed of 660rpm.
bija089 [108]

Since the armature is wave wound, the magnetic flux per pole is 0.0274 Weber.

<u>Given the following data:</u>

  • Emf = 520 Volts
  • Speed = 660 r.p.m
  • Number of armature conductors = 144 slots
  • Number of poles = 4 poles
  • Number of parallel paths = 2

To find the magnetic flux per pole:

Mathematically, the emf generated by a DC generator is given by the formula;

E = \frac{\theta ZN}{60} × \frac{P}{A}

<u>Where:</u>

  • E is the electromotive force in the DC generator.
  • Z is the total number of armature conductors.
  • N is the speed or armature rotation in r.p.m.
  • P is the number of poles.
  • A is the number of parallel paths in armature.
  • Ф is the magnetic flux.

First of all, we would determine the total number of armature conductors:

Z = 144 × 2 × 3

Z = 864

Substituting the given parameters into the formula, we have;

520 = \frac{\theta (864)(660)}{60} × \frac{4}{2}

520 = \theta (864)(11) × 2

520 = 19008 \theta \\\\\Theta = \frac{520}{19008}

<em>Magnetic flux </em><em>=</em><em> 0.0274 Weber.</em>

Therefore, the magnetic flux per pole is 0.0274 Weber.

Read more: brainly.com/question/15449812?referrer=searchResults

5 0
3 years ago
How did Atlantis benefit from lessons learned in construction of earlier orbiters?
Alenkasestr [34]

Answer:

Atlantis benefited from lessons learned in the construction and testing of Enterprise, Columbia and Challenger. ... The Experience gained during the Orbiter assembly process also enabled Atlantis to be completed with a 49.5 percent reduction in man hours (compared to Columbia).

Explanation:

8 0
3 years ago
A steam power plant is represented as a heat engine operating between two thermal reservoirs at 800 K and 300 K. The temperature
Sergeeva-Olga [200]
Yeet is the answer .....
4 0
3 years ago
Other questions:
  • How I do I get nut out of sheets​
    8·2 answers
  • What is the solution to the system of equations?<br><br>2x-y=7<br>y=2x+3​
    8·1 answer
  • Find the sum and product of each of these pairs of numbers. Express your answers as a base 3 expansion. Hint: We can just add an
    5·1 answer
  • Read a 4 character number. Output the result in in the following format, Input 9873, Output 3 *** 7 ******* 8 ******** 9 *******
    8·1 answer
  • At the inlet to the combustor of a supersonic combustion ramjet (or scramjet), the flow Mach number is supersonic. For a fuel-ai
    12·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
  • Nguyên lý hoạt động của kim phun
    7·1 answer
  • 14. The flow water in a 10-in Schedule 40 pipe is to be metered. The temperature of the water is
    8·1 answer
  • How might a field like philosophy of history help scientists​
    14·1 answer
  • 3. (5%) you would like to physically separate different materials in a scrap recycling plant. describe at least one method that
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!