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
By using order of magnitude analysis, the continuity and Navier-Stokes equations can be simplified to the Prandtl boundary-layer
Mademuasel [1]

Answer: Attached below is the well written question and solution

answer:

i) Attached below

ii) similar parameter =  \frac{V}{VoL } = 1 / Re

Explanation:

Using ;  L as characteristic length and Vo as reference velocity

i) Nondimensionalize the equations

ii) Identifying similarity parameters

the similar parameters are  = \frac{V}{VoL } = 1 / Re

Attached below is the detailed solution

7 0
2 years ago
In normal operation, a paper mill generates excess steam at 20 bar and 400◦C. It is planned to use this steam as the feed to a t
Keith_Richards [23]

Answer:

The maximum power that can be generated is 127.788 kW

Explanation:

Using the steam table

Enthalpy at 20 bar = 2799 kJ/kg

Enthalpy at 2 bar = 2707 kJ/kg

Change in enthalpy = 2799 - 2707 = 92 kJ/kg

Mass flow rate of steam = 5000 kg/hr = 5000 kJ/hr × 1 hr/3600 s = 1.389 kg/s

Maximum power generated = change in enthalpy × mass flow rate = 92 kJ/kg × 1.389 kg/s = 127.788 kJ/s = 127.788 kW

6 0
3 years ago
5. Which of the following is false about onStep?
katovenus [111]

The false statement about onStep is: B. The default number of steps per second is 30.

<h3>What is an onStep?</h3>

An onStep can be defined as a computerized telescope goto controller that is designed and developed to <u>animate shapes</u> while using it on a variety of mounting systems such as forks.

<h3>The characteristics of an onStep.</h3>

In Engineering, some of the characteristics that are associated with an onStep include the following:

  • The onStep function can be called without user input.
  • It can be used to animate shapes without user input.
  • It only runs a certain number of times.

In conclusion, the default number of steps per second for onStep isn't 30.

Read more on onStep here: brainly.com/question/25619349

7 0
2 years ago
If you are interested only in the temperature range of 20° to 40°C and the ADC has a 0 to 3V input range, design a signal condit
mario62 [17]

Explanation:

Temperature range → 0 to 80'c

respective voltage output → 0.2v to 0.5v

required temperature range 20'c to 40'c

Where T = 20'c respective voltage

\begin{aligned}v_{20} &=0.2+\frac{0.5-0.8}{80} \times 20 \\&=0.2+\frac{0.3}{80} \times 20 \\V_{20} &=0.275 v\end{aligned}

\begin{aligned}\text { when } T=40^{\circ} C & \text { . } \\v_{40} &=0.2+\frac{0.5-0.2}{80} \times 40 \\&=0.35 V\end{aligned}

Therefore, Sensor output changes from 0.275v to 0.35volts for the ADC the required i/p should cover the dynamic range of ADC (ie - 0v to 3v)

so we have to design a circuit which transfers input voltage 0.275volts - 0.35v to 0 - 3v

Therefore, the formula for the circuit will be

\begin{array}{l}v_{0}=\left(v_{i n}-0.275\right) G \\\sigma=\ldots \frac{3-0}{0.35-0.275}=3 / 0.075=40 \\v_{0}=\left(v_{i n}-0.275\right) 40\end{array}

The simplest circuit will be a op-amp

NOTE: Refer the figure attached

Vs is sensor output

Vr is the reference volt, Vr = 0.275v

\begin{aligned}v_{0}=& v_{s}-v_{v}\left(1+\frac{R_{2}}{R_{1}}\right) \\\Rightarrow & \frac{1+\frac{R_{2}}{R_{1}}}{2}=40 \\& \frac{R_{2}}{R_{1}}=39 \quad \Rightarrow\end{aligned}

choose R2, R1 such that it will maintain required  ratio

The output Vo can be connected to voltage buffer if you required better isolation.

3 0
2 years ago
4. Water vapor enters a turbine operating at steady state at 1000oF, 220 lbf/in2 , with a volumetric flow rate of 25 ft3/s, and
hodyreva [135]
Yes i is the time of the day you get to frost the moon and back and then you can come over and then go to hang out with me me and then go to hang out
6 0
3 years ago
Other questions:
  • The pressure ratio of gas turbine power plant cycle, operating with air, corresponding to maximum work for a given temperature l
    14·1 answer
  • Suppose you are implementing a relational employee database, where the database is a list of tuples formed by the names, the pho
    14·1 answer
  • In details and step-by-step, show how you apply the Bubble Sort algorithm on the following list of values. Your answer should sh
    15·1 answer
  • Consider atmospheric air at 20°C and a velocity of 30 m/s flowing over both surfaces of a 1-m-long flat plate that is maintained
    11·1 answer
  • You are hired as the investigators to identify the root cause and describe what should have occurred based on the following info
    9·1 answer
  • Which of the following is not a function of the suspension system?_____
    6·1 answer
  • What is a beam on a bridge? what does it do?
    6·1 answer
  • Why data structure is important
    5·1 answer
  • The forklift exiting an aisle in a warehouse has the right of way?
    15·1 answer
  • What is the difference between absorbed wavelengths and reflected wavelengths?
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!