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
Ray Of Light [21]
3 years ago
12

Write the definition of a function minmax that has five parameters. the first three parameters are integers. the last two are se

t by the function to the largest and smallest of the values of the first three parameters. the function does not return a value. the function can be used as follows: int a=31, b=5, c=19 big, small; minmax(a,b,c,&big,&small);
Mathematics
1 answer:
Nitella [24]3 years ago
8 0
Hello,


function minmax(int p1,int p2,int p3, int adr_big, int adr_small)
{ int mini=p1,maxi=p1;
 if (p1>p2)   {mini=p2;}
else            {maxi=p2;};

if (p3>maxi) maxi=p3;
if (p3<mini) mini=p3;
*adr_big=maxi;
*adr_small=mini;
};

// main
int a=31,b=5,c=19,big,small;
minmax(a,b,c,&big,&small);





You might be interested in
Hello free plonts have a good day
sergejj [24]

Answer:

thx

Step-by-step explanation:

MARK AS BRAINLEST!!

6 0
3 years ago
Read 2 more answers
Please help me solve this problem with step by step explanation.​
Kisachek [45]

Answer:

Im not rally sure but maybe 5.71 , here is my explanation :

Step-by-step explanation:

Tan 55 =x/4

tan 55 = 1/42814

1/42814 = x /4

×=5.712592027 .

3 0
3 years ago
Please answer answer question
Sophie [7]

Answer:

The correct answer is

Step-by-step explanation:

11 square centimeters.

Hope this helps....

Have a nice day!!!!

8 0
3 years ago
Read 2 more answers
el precio del kilogramo de jitomate es de 36.50 juana compro 3 1/2 kilogramos cuanto pago por todo el jitomate?​
SashulF [63]

El precio total por 3 1/2 kg de jitomate que compró Juana es 127.75

Para saber el precio total de los 3 1/2 kg de jitomate que compró Juana debemos hacer el siguiente procedimiento.

Necesitamos saber cuánto vale medio kg de jitomate, para ello dividimos 36.50 en 2.

36.50/2 = 18.25

Luego multiplicamos 36.50 por 3, para saber cuánto valen 3 kg de jitomate.

36.50 X 3 = 109.5

Por último, sumamos el precio de medio kilo con el precio de tres kilos para tener el total que pagó Juana.

109.5 + 18.25 = 127,75

Aprenda más en: brainly.com/question/16170919

8 0
3 years ago
Read 2 more answers
5 Quick algebra 1 questions for 50 points! <br><br><br> Only answer if you know all 5, Tysm! :)
PIT_PIT [208]

The equations of the perpendicular lines are: y = 1/2x + 6, y = 15, y = -x - 2, y = 6x + 3 and y = 1/3x - 4

<h3>How to determine the equations?</h3>

When a linear equation is represented as:

Ax + By = C

The slope (m) is:

m = -A/B

When the linear equation is represented as:

y = mx + c

The slope is m

A line perpendicular to a linear equation that has a slope of m would have a slope of -1/m

Using the above highlights, the equations of the lines are:

<u>6. y = -2x + 5; (2, 7)</u>

The slope is:

m = -2

The perpendicular slope is:

n = 1/2

The equation of the perpendicular line is:

y = n(x - x1) + y1

This gives

y = 1/2(x - 2) + 7

Evaluate

y = 1/2x - 1 + 7

This gives

y = 1/2x + 6

<u>7. y = -5; (11, 15)</u>

The slope is:

m = 0

The perpendicular slope is:

n = 1/0 = undefined

The equation of the perpendicular line is:

y = n(x - x1) + y1

This gives

y = 15

<u>8. Graph ; (-12, 10)</u>

The slope is:

m = (y2 - y1)/(x2 - x1)

Using the points on the graph, we have:

m = (2 - 3)/(3 - 4)

m = 1

The perpendicular slope is:

n = -1

The equation of the perpendicular line is:

y = n(x - x1) + y1

This gives

y = -1(x + 12) + 10

y = -x - 12 + 10

Evaluate

y = -x - 2

<u>9. y = -1/6x + 1; (-2, -9)</u>

The slope is:

m = -1/6

The perpendicular slope is:

n = 6

The equation of the perpendicular line is:

y = n(x - x1) + y1

This gives

y = 6(x + 2) - 9

Evaluate

y = 6x + 12 - 9

This gives

y = 6x + 3

<u>10. 6x + 2y = 14; (12, 0)</u>

The slope is:

m = -6/2

m = -3

The perpendicular slope is:

n = 1/3

The equation of the perpendicular line is:

y = n(x - x1) + y1

This gives

y = 1/3(x - 12) + 0

Evaluate

y = 1/3x - 4

Hence, the equations of the perpendicular lines are: y = 1/2x + 6, y = 15, y = -x - 2, y = 6x + 3 and y = 1/3x - 4

Read more about linear equations at:

brainly.com/question/13763238

#SPJ1

5 0
1 year ago
Other questions:
  • Perimeter and area for these 2 please! Give explanation! BIG POINTS
    15·1 answer
  • What is 2.5 in expanded and word form?
    13·1 answer
  • What is the answer for <br> 2.3+8.3=
    13·2 answers
  • Any help would be appreciated
    12·1 answer
  • The function f(x) can be described by the set of points {(-1,1),(0,2),(1,4),(2,8)}, What is the RANGE of f(x)?
    6·2 answers
  • Please help...
    11·2 answers
  • Find an integer value of b that makes x^2 + bx - 81 factorable​
    6·1 answer
  • Find a in 211afour= 150
    15·1 answer
  • What is the degree of F
    9·1 answer
  • Out of the four benefits of direct deposit (safety, convenience, quick access to money, increased savings), which is the MOST co
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!