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
Using the AASHTO procedure, determine the thickness required for a base and a surface layer over existing subgrade. The structur
garri49 [273]

Answer:

<u>the thickness required would be 12 inch HMA and granular base layer of 6 inches</u>

Explanation:

structural number = 4.5

stone base course material coefficient = 0.13

hma material layer coefficient = 0.40

drainage coefficient = 0.90

we will use layered analysis procedure to get thickness

D1 >= sN1/a1

when we cross multiply,

sN1 = a1D1 >=sN1

D2 >= -sN2-sN1/a2m2

sN2* + sN1* >= sN2

D3 >= sN3-(sN1*+sN2*)/a2m2

where a1,a2,a3 = layer coefficient

d1 d2 d3 = actual thickness

m2,m3 = coefficient of base

a1 = 0.4

a1 = 0.13

sN = 4.5

m2 = 0.9

D1 >= sN1/a1 = 4.5/0.4

= 11.25

thickness of surface = 12 inches

a1D1 = 0.4x12 = 4.8

we have value of sN2 = 5.5

(5.5 -4.8)/(0.13*0.9)

= 0.7/0.117

= 5.9829 inches

approximately 6 inches

so the pavement will have 12inch HMA surface and 6 inches granular base layer.

7 0
3 years ago
What is the normal balance side of an asset?
Mademuasel [1]
The normal balance for asset and expense accounts is the debit side, while for income, equity, and liability accounts it is the credit side. An account's assigned normal balance is on the side where increases go because the increases in any account are usually greater than the decreases
8 0
3 years ago
As a human resources professional for a large company, Tommy is involved with the ___________ process. His goal is to find the r
zaharov [31]

Answer:

Recruitment

Explanation:

The process of recruitment involves several activities whose main objective is to get the right people with relevant qualifications at the appropriate time to meet the needs of an organisation whenever there’s need. The process involves screening a pool of candidates through several steps to obtain the best fit for the job.

4 0
3 years ago
g (b) (4 pt) Write a function unique that identifies the repeated elements of a list and returns a list with unique elements. $
Taya2010 [7]

Answer:

I am writing a Python function unique()    

def unique(list):  # function unique that takes a list as parameter

 unique_list = []  #list to store unique elements

 for elements in list:  # loop that checks every element of the list

   if elements not in unique_list:  # takes unique elements from list

     unique_list.append(elements)  

#appends unique elements  from list to unique_list

 return unique_list      #outputs unique_list elements

         

Explanation:

The unique() function takes a list as argument which is named as list.

unique_list is a new list which stores unique element from the list.

The loop moves through the elements of the list one by one.

if condition checks if the element in list is not present in the unique_list which means that element is unique to the unique_list.

If this condition is true this means that the element is not repeated and is not already present in unique_list. Then that element is included to the unique_list using append() function which appends an element into the unique_list from the list.

If you want to check if this function works you pass a list with repeated elements to this function so that it can print the unique elements as follows:

print(unique([1,2,2,2,2,3,4,4,4,4,4,5]))

Output:

[1, 2, 3, 4, 5]

The screen shot of the function along with its output is attached.

6 0
4 years ago
Need the answer now- English<br>kailangan ang sagot ngayon-tagalog<br><br>mag practice tayo!<br>​
pychu [463]

Answer:

heirjfurifbhdnrgskeviebreo

7 0
3 years ago
Other questions:
  • A rigid, sealed cylinder initially contains 100 lbm of water at 70 °F and atmospheric pressure. Determine: a) the volume of the
    14·1 answer
  • The following yield criteria are dependent on hydrostatic stress (a) Maximum distortion energy and maximum normal stress (b) Tre
    7·1 answer
  • Moist air at 27 deg C, 1atm, and 50% relative humidity enters an evaporative cooling unit operating at steady state consisiting
    6·1 answer
  • Consider a thermal energy reservoir at 1500 K that can supply heat at a rate of 150,000 kJ/h. Determine the exergy of this suppl
    15·1 answer
  • Technician A says that UHSS is designed to absorb collision energy.
    13·1 answer
  • Guys i need help and some ones please help me
    12·1 answer
  • Help please!
    13·1 answer
  • When _____ ,the lithium ions are removed from the_____ and added into the _____
    8·1 answer
  • In the video "Understanding Flight', What is the main benefit of flying to the people in the airport?
    8·1 answer
  • Which term refers to the practical applications of scientific knowledge
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!