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 isothermal CSTR with a first order irreversible reaction A â&gt; B (and rA[mol/(ft3*min)] = - 0.5 CA) has a constant flow rat
worty [1.4K]
Can you help me by solving this question

7 0
3 years ago
You want to plate a steel part having a surface area of 160 with a 0.002--thick layer of lead. The atomic mass of lead is 207.19
Pepsi [2]

Answer:

<u><em>To answer this question we assumed that the area units and the thickness units are given in inches.</em></u>

The number of atoms of lead required is 1.73x10²³.    

Explanation:

To find the number of atoms of lead we need to find first the volume of the plate:

V = A*t

<u>Where</u>:

A: is the surface area = 160

t: is the thickness = 0.002

<u><em>Assuming that the units given above are in inches we proceed to calculate the volume: </em></u>

V = A*t = 160 in^{2}*0.002 in = 0.32 in^{3}*(\frac{2.54 cm}{1 in})^{3} = 5.24 cm^{3}    

Now, using the density we can find the mass:

m = d*V = 11.36 g/cm^{3}*5.24 cm^{3} = 59.5 g

Finally, with the Avogadros number (N_{A}) and with the atomic mass (A) we can find the number of atoms (N):

N = \frac{m*N_{A}}{A} = \frac{59.5 g*6.022 \cdot 10^{23} atoms/mol}{207.19 g/mol} = 1.73 \cdot 10^{23} atoms    

Hence, the number of atoms of lead required is 1.73x10²³.

I hope it helps you!

3 0
3 years ago
Which career best fits the group of the words below? High voltage, lines
Llana [10]

Answer:

I forget the word for it, but probably the guys who set up the power lines in the city.

Explanation:

5 0
3 years ago
Read 2 more answers
Argue the importance to society of incorporating green building into an engineer's designs, with at least two examples.
stellarik [79]

Answer:

Green Design is your answer

Explanation:

4 0
3 years ago
Read 2 more answers
If a resistor only has three color bands, it has a tolerance of 20 percent. What would this mean for a resistor specified at 10,
Norma-Jean [14]
B is the correct answe it will fail if more than 12.000
Hope this helps
:)
3 0
3 years ago
Other questions:
  • What is the stress concentration factor of a shaft in torsion, where D=1.25 in. and d=1 in. and the fillet radius is, r=0.2 in.a
    7·1 answer
  • HELP!
    8·1 answer
  • A circular ceramic plate that can be modeled as a blackbody is being heated by an electrical heater. The plate is 30 cm in diame
    15·1 answer
  • Write a function named is_float(s) that takes one argument that is a string. It returns True if string s represents a floating p
    6·1 answer
  • How can goal setting help with academic performance?
    13·1 answer
  • 1. Pump extracts energy from a flowing fluid. _______
    10·1 answer
  • The W16x50, steel beam below has a span of 26' and is subjected to a 2.3 k/ft uniform distributed loading. If a 8 kip load is al
    8·1 answer
  • Why is engineering profession important ​
    11·1 answer
  • Limited time only for christmas give yourself free 100 points Thats what im talking about
    5·2 answers
  • What lump sum of money must be deposited in a bank account at present time so that Php 500 monthly can be withdrawn for five yea
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!