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 number 12 copper wire has a diameter of 2.053 mm. Calculate the resistance of a 37.0 m long piece of such wire.
Alinara [238K]

Answer:

R=1923Ω

Explanation:

Resistivity(R) of copper wire at 20 degrees Celsius is 1.72x10^-8Ωm.

Coil length(L) of the wire=37.0m

Cross-sectional area of the conductor or wire (A) = πr^2

A= π * (2.053/1000)/2=3.31*10^-6

To calculate for the resistance (R):

R=ρ*L/A

R=(1.72*10^8)*(37.0)/(3.31*10^-6)

R=1922.65Ω

Approximately, R=1923Ω

5 0
3 years ago
Is my paper's main idea, or thesis, clearly stated early on (within the first paragraph, ideally)?
Burka [1]
I dont know is your papers main idea stated clearly?
5 0
3 years ago
How can I draw this image in 2D form
Ket [755]

Answer:

no it is not 2D

Explanation:

it is 3D

ok so follow these steps

- make hole

-make square

-make triangle

ok now your figure is ready

5 0
3 years ago
Situation: Peter is designing a new hybrid car that functions on solar power. He is currently working on sketches of his design
givi [52]

Answer:

whats the question?

Explanation:

8 0
2 years ago
For each of the following combinations of parameters, determine if the material is a low-loss dielectric, a quasi-conductor, or
Alborosie

Answer:

Glass: Low-Loss dielectric

  α = 8.42*10^-11 Np/m

  β = 468.3 rad/m

  λ = 1.34 cm

  up = 1.34*10^8 m/s

  ηc = 168.5 Ω

Tissue: Quasi-Conductor

  α = 9.75 Np/m

  β = 12.16 rad/m

  λ = 51.69 cm

  up = 0.52*10^8 m/s

  ηc = 39.54 + j 31.72 Ω        

Wood: Good conductor

  α = 6.3*10^-4 Np/m

  β = 6.3*10^-4 Np/m

  λ = 10 km

  up = 0.1*10^8 m/s

  ηc = 6.28*( 1 + j )

Explanation:

Given:

Glass with µr = 1, εr = 5, and σ = 10−12 S/m at 10 GHz

Animal tissue with µr = 1, εr = 12, and σ = 0.3 S/m at 100 MHz.

Wood with µr = 1, εr = 3, and σ = 10−4 S/m at 1 kHz

Find:

Determine if  the material is a low-loss dielectric, a quasi-conductor, or a good conductor, and then  calculate α, β, λ, up, and ηc:

Solution:

- We need to determine the loss tangent to determine category of the medium as follows:

                                σ / w*εr*εo

Where, w is the angular speed of wave

            εo is the permittivity of free space = 10^-9 / 36*pi

- Now we classify as follows:

    Glass = \frac{10^-^1^2 }{2*\pi * 10*10^9 * \frac{5*10^-^9}{36\pi } } = 3.6*10^-^1^3\\\\Tissue = \frac{0.3 }{2*\pi * 100*10^6 * \frac{12*10^-^9}{36\pi } } = 4.5\\\\Wood = \frac{10^-^4 }{2*\pi * 1*10^3 * \frac{3*10^-^9}{36\pi } } = 600\\  

- For σ / w*εr*εo < 0.01 --- Low-Loss dielectric and σ / w*εr*εo > 100 --- Good conducting material.

    Glass: Low-Loss dielectric

    Tissue: Quasi-Conductor

    Wood: Good conductor

- Now we will use categorized material base equations from Table 17-1 as follows:

     Glass: Low-Loss dielectric

          α = (σ / 2)*sqrt(u / εr*εo) = (10^-12 / 2)*sqrt( 4*pi*10^-7/5*8.85*10^-12)

          α = 8.42*10^-11 Np/m

          β = w*sqrt (u*εr*εo) = 2pi*10^10*sqrt (4*pi*10^-7*5*8.85*10^-12)

          β = 468.3 rad/m

          λ = 2*pi / β = 2*pi / 468.3

          λ = 1.34 cm

          up = λ*f = 0.0134*10^10

          up = 1.34*10^8 m/s

          ηc = sqrt ( u / εr*εo ) = sqrt( 4*pi*10^-7/12*8.85*10^-12)

          ηc = 168.5 Ω

     Tissue: Quasi-Conductor

          α = (σ / 2)*sqrt(u / εr*εo) = (0.3 / 2)*sqrt( 4*pi*10^-7/12*8.85*10^-12)

          α = 9.75 Np/m

          β = w*sqrt (u*εr*εo) = 2pi*100*10^6*sqrt (4*pi*10^-7*12*8.85*10^-12)

          β = 12.16 rad/m

          λ = 2*pi / β = 2*pi / 12.16

          λ = 51.69 cm

          up = λ*f = 0.5169*100*10^6

          up = 0.52*10^8 m/s

          ηc = sqrt ( u / εr*εo )*( 1 - j (σ / w*εr*εo))^-0.5

          ηc = sqrt (4*pi*10^-7*12*8.85*10^-12)*( 1 - j 4.5)^-0.5

          ηc = 39.54 + j 31.72 Ω

     Wood: Good conductor

          α = sqrt (pi*f*σ u) = sqrt( pi* 10^3 *4*pi* 10^-7 * 10^-4 )

          β = α = 6.3*10^-4 Np/m

          λ = 2*pi / β = 2*pi / 6.3*10^-4

          λ = 10 km

          up = λ*f = 10,000*1*10^3

          up = 0.1*10^8 m/s

          ηc = α*( 1 + j ) / б = 6.3*10^-4*( 1 + j ) / 10^-4

          ηc = 6.28*( 1 + j )

         

           

         

8 0
3 years ago
Other questions:
  • What is the Principle of Entropy Increase?
    9·1 answer
  • How should employees talk to clients)
    9·1 answer
  • An organization is struggling to differentiate threats from normal traffic and access to systems. A security engineer has been a
    12·1 answer
  • Air exits a compressor operating at steady-state, steady-flow conditions at 150 oC, 825 kPa, with a velocity of 10 m/s through a
    12·1 answer
  • This manometer is used to measure the difference in water level between the two tanks.
    10·1 answer
  • As an employee, who is supposed to provide training on the chemicals you are handling or come in contact with at work?
    5·2 answers
  • Give three examples of how engineering has made human life better in your opinion.
    13·1 answer
  • 1. In order for a team to accomplish its goal(s), it is NOT important for the team members to
    14·2 answers
  • A___ remote control can be an advantage to an
    14·2 answers
  • The image shows the relative positions of Earth and the Sun for each of the four seasons. Earth travels in an elliptical orbit a
    11·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!