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
umka21 [38]
3 years ago
11

Write a function call with arguments tensPlace, onesPlace, and userInt. Be sure to pass the first two arguments as pointers. Sam

ple output for the given program: tensPlace = 4, onesPlace = 1
Engineering
1 answer:
Trava [24]3 years ago
4 0

Answer:

#include <stdio.h>

void SplitIntoTensOnes(int* tensDigit, int* onesDigit, int DecVal){

  *tensDigit = (DecVal / 10) % 10;

  *onesDigit = DecVal % 10;

  return;

}

int main(void) {

  int tensPlace = 0;

  int onesPlace = 0;

  int userInt = 0;

  userInt = 41;

  SplitIntoTensOnes(&tensPlace, &onesPlace, userInt);

  printf("tensPlace = %d, onesPlace = %d\n", tensPlace, onesPlace);

  return 0;

}

You might be interested in
An isentropic steam turbine processes 2 kg/s of steam at 3 MPa, which is exhausted at50 kPa and 100C. Five percent of this flow
borishaifa [10]

Answer:

2285kw

Explanation:

since it is an isentropic process, we can conclude that it is a reversible adiabatic process. Hence the energy must be conserve i.e the total inflow of energy must be equal to the total outflow of energy.

Mathematically,

\\ E_{inflow} = E_{outflow}

Note: from the question we have only one source of inflow and two source of outflow (the exhaust at a pressure of 50kpa and the feedwater at a pressure of 5ookpa). Also the power produce is another source of outgoing energy    \\ E_{inflow} = m_{1} h_{1} .

\\

E_{outflow} = m_{2} h_{2} + m_{3} h_{3} + W_{out}

\\

Where m_{1} h_{1} are the mass flow rate and the enthalpies at the inlet  at a pressure of 3Mpa \\,

m_{2} h_{2} are the mass flow rate and the enthalpies  at the outlet 2 where we have a pressure of 500kpa respectively.\\,

and  m_{3} h_{3}   are the mass flow rate and the enthalpies  at the outlet 3 where we have a pressure of 50kpa respectively.\\,

We can now express write out the required equation by substituting the new expression for the energies \\

m_{1} h_{1} = m_{2} h_{2} + m_{3} h_{3} + W_{out}   \\

from the above equation, the unknown are the enthalpy values and  the mass flow rate. \\

first let us determine the enthalpy values at the inlet and the out let using the Superheated water table.  \\

It is more convenient to start from outlet 3 were we have a temperature 100^{0}C and pressure value of (50kpa or 0.05Mpa ). using double interpolation method  on the superheated water table to determine the enthalpy value with careful calculation we have  \\

h_{3}  = 2682.4 KJ/KG , at this point also from the table the entropy value ,s_{3} value is 7.6953 KJ/Kg.K. \\

Next we determine the enthalphy value at outlet 2. But in this case, we don't have a temperature value, hence we use the entrophy value since the entropy  is constant at all inlet and outlet. \\

So, from the superheated water table again, at a pressure of 500kpa (0.5Mpa) and entropy value of  7.6953 KJ/Kg.K with careful  interpolation we arrive at a enthalpy value of 3206.5KJ/Kg.\\

Finally for inlet one at a pressure of 3Mpa, interpolting with an entropy value of 7.6953KJ/Kg.K  we arrive at enthalpy value of 3851.2KJ/Kg. \\

Now we determine the mass flow rate at each inlet and outlet. since  mass must also be balance, i.e  m_{1} = m_{2} + m_{3} \\

From the question the, the mass flow rate at the inlet m_{1}}  is 2Kg/s \\

Since 5% flow is delivered into the feedwater heating,  \\

m_{2} = 0.05m_{1} = 0.05 *2kg/s = 0.1kg/s \\

Also for the outlet 3 the remaining 95% will flow out. Hence

m_{3} = 0.95m_{1} = 0.95 *2kg/s = 1.9kg/s \\

Now, from m_{1} h_{1} = m_{2} h_{2} + m_{3} h_{3} + W_{out}   \\ we substitute values

W_{out} = m_{1} h_{1}-m_{2} h_{2}-m_{3} h_{3}

W_{out} = (2kg/s)(3851.2KJ/Kg) - (0.1kg/s)(3206.5kJ/kg)- (1.9)(2682.4kJ/kg)

\\

W_{out} = 2285.19 kW.

Hence the power produced is 2285kW

7 0
3 years ago
Water is the working fluid in a Rankine cycle. Superheated vapor enters the turbine at 8 MPa, 560°C and the turbine exit pressur
hoa [83]

Answer:

1. The net power developed=9370.773KW

2. Thermal Efficiency= 0.058

Explanation

Check attachment

5 0
4 years ago
Select four types of engineers who might be involved in the development of a product such as an iPhone.
dedylja [7]

computer engineers

electrical engineers

mechanical engineers

manufacturing engineers

3 0
3 years ago
Read 2 more answers
How does a rudder help maneuver an airplane?
Nonamiya [84]
It’s just helps it like
4 0
3 years ago
... is an actual sequence of interactions (i.e., an instance) describing one specific situation; a ... is a general sequence of
Alexandra [31]

Answer:

  1. Scenario
  2. Use case
  3. Scenarios
  4. Scenarios
  5. Use case

Explanation:

A <u>scenario</u> is an actual sequence of interactions (i.e., an instance) describing one specific situation; a <u>use case</u> is a general sequence of interactions (i.e., a class) describing all possible <u>scenarios</u> associated with a situation. <u>Scenarios</u> are used as examples and for clarifying details with the client. <u>Use cases</u> are used as complete descriptions to specify a user task or a set of related system features.

3 0
3 years ago
Other questions:
  • A 50 Ibm block is moving at 4 ft/s. Find Its total kinetic energy? Also find Its kinetic energy per unit mass is
    13·1 answer
  • Please add comments to your program to explain it. Thank you!
    14·1 answer
  • Light that bounces off of a wall or ceiling is referred to as_
    6·1 answer
  • What term specifically describes small chunks of rocks and debris in space that burn up in Earth’s atmosphere?
    6·1 answer
  • Problem 1 (10 points) In the first homework you were instructed to design the mechanical components of an oscillating compact di
    5·1 answer
  • A displacement transducer has the following specifications Linearity error ±0.1% of reading, Drift ±0.15%/C of reading, sensitiv
    8·1 answer
  • Engineers will redesign their products when they find flaws. TRUE O False​
    10·1 answer
  • A TV USE 75 WATTS WHILE IN USED ASSMING THAT ITIS USED 4 HOURS EVERY DAY HOW MUCH ENERGY IN 4 IN KWH WOULD THE TV CONSUME ANNUAL
    13·2 answers
  • What is vapier calliper​
    15·1 answer
  • All machines have three fundamental hazards: moving parts, point of operation, and?
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!