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
A cylindrical metal specimen having an original diameter of 12.8 mm and gauge length of 50.80 mm is pulled in tension until frac
Sedaia [141]

Answer:

%Reduction in area = 73.41%

%Reduction in elongation = 42.20%

Explanation:

Given

Original diameter = 12.8 mm

Gauge length = 50.80mm

Diameter at the point of fracture = 6.60 mm (0.260 in.)

Fractured gauge length = 72.14 mm.

%Reduction in Area is given as:

((do/2)² - (d1/2)²)/(do/2)²

Calculating percent reduction in area

do = 12.8mm, d1 = 6.6mm

So,

%RA = ((12.8/2)² - 6.6/2)²)/(12.8/2)²

%RA = 0.734130859375

%RA = 73.41%

Calculating percent reduction in elongation

%Reduction in elongation is given as:

((do) - (d1))/(d1)

do = 72.14mm, d1 = 50.80mm

So,

%RA = ((72.24) - (50.80))/(50.80)

%RA = 0.422047244094488

%RA = 42.20%

3 0
4 years ago
Can someone pls give me the answer to this?
olganol [36]

I think option c 12 is currect

7 0
3 years ago
Savabuck University has installed standard pressure-operated flush valves on their water closets. When flushing, these valves de
Dvinal [7]

Answer:

Cost = $2527.2 per month.

Explanation:

Given that

Discharge ,Q = 130 L/min

 So

Q=0.13\ m^3/min

Cost =  $0.45 per cubic meter

1 month = 30 days

1 days = 24 hr = 24 x 60 min

1 month = 30 x 24 x 60 min

1 month = 43,200 min

Lets xm^3\ water\ waste\ in\ a\ month

x = 0.13 x 43,200

x=5616\ m^3

So the total cost = 5616 x 045 $

Cost = $2527.2 per month.

7 0
4 years ago
You are NASA. Build a space station on Mars that could support humans to live in for an extended period of time.
Ierofanga [76]
Literally just do the project
3 0
3 years ago
An open tank in a petroleum company lab contains a layer of oil on top of a layer of water. The water height is 5 times the oil
maks197457 [2]

Answer:

Explanation:

Given

specific gravity of oil=0.79

height of oil column is h

height of water column is 5h

Gauge pressure at bottom is equivalent to 26.9\ mm

P_{gauge}=\rho_{Hg} gh_{Hg}

P_{gauge}=13.6\times 10^3\times 9.8\times 26.9\times 10^{-3}\ Pa

Pressure due to oil and water  at bottom

P=\rho _{oil}hg+\rho _{w}5hg

P=0.79\rho _whg+5\rho _whg=5.79\rho _{w}hg

P_{gauge}=P

13.6\times 10^3\times 9.8\times 26.9\times 10^{-3}=5.79\times 10^3\times 9.8\times h

h=63.18\ mm

6 0
3 years ago
Other questions:
  • The following C program asks the user for two input null-terminated strings, each stored in uninitialized 100-byte buffer, and c
    6·1 answer
  • Engineering is a broad category that includes a variety of occupations and attempts to solve problems using math and
    13·1 answer
  • Technician A says independent shops are not affiliated with vehicle manufacturers, but it is easy for technicians who work in th
    8·1 answer
  • Give two methods on how powder is produced in powder metallurgy.
    5·2 answers
  • Determine the resultant normal force across the cross section at point B. Express your answer to three significant figures and i
    6·1 answer
  • What must you do if hauling a load of material which could fall or blow onto the roadway?
    14·1 answer
  • You are driving on a road where the speed limit is 35 mph. If you want to make a turn, you must start to signal at least _______
    7·1 answer
  • The driver of a car traveling up a 2% grade at an initial speed V0 applied the brakes abruptly and the vehicle slid to a complet
    13·1 answer
  • Pipe (2) is supported by a pin at bracket C and by tie rod (1). The structure supports a load P at pin B. Tie rod (1) has a diam
    15·1 answer
  • In designing a fixed-incline self-acting thrust pad when the width of the pad is much larger than the length, it is of interest
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!