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
WILL GIVE A BRAINLEST
andreyandreev [35.5K]
Two end points
One direction

Hope this helps xx
5 0
3 years ago
Vector u has its initial point at (21,12) and its terminal point at (19,-8). Vector v has a direction opposite that of u, whose
agasfer [191]

Step-by-step explanation:

517÷4685568π√7%+66×74367

7 0
2 years ago
What’s 5000÷4x8÷3x20?
PilotLPTM [1.2K]

Answer:

1250  3  x28

Step-by-step explanation:

5000

4

x8

3

x20

4 0
3 years ago
Read 2 more answers
Solve -3(-2x+20)=-8(x+12)+92 please?
sveta [45]
The answer is x=4 hope it helps
8 0
3 years ago
Underline all the ordered pairs (x,y) that are solutions to the equation y=2x+1.
Romashka [77]

Answer:

<u>(3,7)</u> (7,3) (−1,14) <u>(0,1)</u> <u>(12,25)</u>

<u>(5,11)</u> (0,12) (1,8) (12,0) <u>(−1,−1)</u>

Step-by-step explanation:

We have the following function:

y = 2x+1.

We are going to check if each ordered pair is a solution.

(3,7)

If when x = 3, y = 7, it is a solution.

y = 2x + 1 = 2(3) + 1 = 7

This ordered pair is a solution.

(7,3)

If when x = 7, y = 3, it is a solution.

y = 2x + 1 = 2(7) + 1 = 15

This ordered pair is not a solution.

(-1,14)

If when x = -1, y = 14, it is a solution.

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

This ordered pair is not a solution.

(0,1)

If when x = 0, y = 1, it is a solution.

y = 2x + 1 = 2(0) + 1 = 1

This ordered pair is a solution.

(12,25)

If when x = 12, y = 25, it is a solution.

y = 2x + 1 = 2(12) + 1 = 25

This ordered pair is a solution.

(5,11)

If when x = 5, y = 11, it is a solution.

y = 2x + 1 = 2(5) + 1 = 11

This ordered pair is a solution.

(0,12)

If when x = 0, y = 12, it is a solution.

y = 2x + 1 = 2(0) + 1 = 1

This ordered pair is not a solution.

(1,8)

If when x = 1, y = 8, it is a solution.

y = 2x + 1 = 2(1) + 1 = 3

This ordered pair is not a solution.

(12,0)

If when x = 12, y = 0, it is a solution.

y = 2x + 1 = 2(12) + 1 = 25

This ordered pair is not a solution.

(-1,-1)

If when x = -1, y = -1, it is a solution.

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

This ordered pair is a solution.

3 0
3 years ago
Other questions:
  • Need help with this one fast! Thanks.
    15·1 answer
  • Estimate the area under the curve f(x) = x^2 from x = 1 to x = 5 by using four inscribed (under the curve) rectangles. Answer to
    7·1 answer
  • Choose the equation that matches the following problem.
    6·1 answer
  • What is not equivalent to 1/3 is it 5/15,7/21,6/24,or 9/27
    13·1 answer
  • Find the reference angle of -404° by adding or subtracting by multiples of 360°?
    11·1 answer
  • If you randomly select a card from a well-shuffled standard deck of 52 cards, what is the probability that the card you select i
    10·1 answer
  • May I please receive help?
    12·2 answers
  • What is the y-intercept of an equation
    14·2 answers
  • If x = 9 units and h = 4 units, then what is the area of the triangle shown above?
    6·1 answer
  • The mean on a statewide biology test was 76 with a standard deviation of 11. Harris county sampled the scores of some of its stu
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!