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
Which values are within the range of the piecewise-defined function? f(x) = StartLayout enlarged left-brace 1st Row 1st column 2
Otrada [13]

Answer:

the answer is below frum ed

Step-by-step explanation:

y= -6

Y= -4

Y= -3

Y= 0

8 0
2 years ago
Read 2 more answers
A sine function has an amplitude of 3, a period of pi, and a phase shift of pi/2. What is the y-intercept of the function?
jarptica [38.1K]

Based on the calculations, we can logically deduce that the y-intercept of this sine function is equal to: A. 3.

<u>Given the following data:</u>

  • Amplitude = 3
  • Period = π
  • Phase shift = π/2

<h3>How to determine the y-intercept of this function?</h3>

Mathematically, a sine function is modeled by this equation:

y = Asin(ωt + ø)

<u>Where:</u>

  • A represents the amplitude.
  • ω represents angular velocity.
  • t represents the period.
  • ø represents the phase shift.

Also, the period of a sine wave is given by:

t = 2π/ω

2 = 2π/ω

ω = 2

Substituting the given parameters into the equation, we have;

y = 3sin(2t + π/2)

At t = 0, we have:

y = 3sin(2(0) + π/2)

y = 3sin(π/2)

y = 3sin(90)

y = 3 × 1

y = 3.

In conclusion, we can logically deduce that the y-intercept of this sine function is equal to 3.

Read more on phase shift here: brainly.com/question/27692212

#SPJ1

5 0
2 years ago
What type of triangle has side lengths of 23, 24, and 24?
Hatshy [7]
B. I think....... :)
6 0
3 years ago
Read 2 more answers
How long will it take an emperor penguin to swim 14 miles if it is swimming 7 mph
xz_007 [3.2K]
It will take the penguin 2 hours i think
14 miles
7 miles per hour 
1 hour- 7 miles
2 hours- 14 miles
7 0
3 years ago
What is the reciprocal of 5 1/8
Mars2501 [29]

Answer:

0.19512195122

Step-by-step explanation:

3 0
3 years ago
Read 2 more answers
Other questions:
  • (show the supposition, proof and conclusion)
    12·1 answer
  • Use the given conditions to write an equation for the line in​ point-slope form and general form.
    11·1 answer
  • What angle measure is supplementary to a 95° angle?
    11·2 answers
  • ****Please help me with this math problem!!**** Will give stars, thanks, and brainliest!! Josh solved the equation below. Is his
    8·1 answer
  • Question #6 please? The are and the perimeter
    5·1 answer
  • Is Amy’s answer accurate
    13·1 answer
  • Unit 4: Linear Equations
    10·1 answer
  • Pleaseeeeeeee helpppppppppppppp!!! :)
    7·2 answers
  • Simplify the expression:<br> 2a+4b=9c
    8·2 answers
  • I will give 70 -0ints
    15·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!