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
vesna_86 [32]
3 years ago
9

Describe an algorithm that produces the maximum, me- dian, mean, and minimum of a set of three integers. (The median of a set of

integers is the middle element in the list when these integers are listed in order of increasing size. The mean of a set of integers is the sum of the integers divided by the number of integers in the set.)
Mathematics
1 answer:
zheka24 [161]3 years ago
5 0

Answer

The mean of three numbers x1,x2,x3 can be obtained by a calculus. The first step of the algorithm is

1) mean(x1,x2,x3) = \frac{x1+x2+x3}{3}

In order to obtain the median, maximun and minumun of x1, x2 and x3, we can compare x1 and x2. The smaller of those numbers will be compared to x3 and, if x3 is even smaller, then x3 is the minimun, the other small number is the median, and the remaining number is the maximun. Otherwise, we compare x3 with the bigger number to find median and maximun. To summarize:

2) compare x1 with x2. The bigger of the two numbers will be called '<em>s</em>' (for  small) and the smaller will be called '<em>b</em>' (from big).

3) compare x3 with <em>s</em>. The smaller of this subset will be the minimun of the entire set of 3 elements.

4) Check if x3 is the minimun, in that case, <em>s </em>is the median, because <em>s</em> is between x3 and <em>b. </em>We also conclude that <em>b</em> is the maximun

5) if x3 in not the minimun, then compare it with <em>b.</em> The bigger element between the two of them will be the maximun of the set, and the smaller one will be the median.

I hope it helps you!

You might be interested in
5x-2y=3<br> -5x+4y=9<br> Solve the system of equations
german

the answer to this system of linear equations is (3,6)

3 0
3 years ago
What's -4/9 x 5/8 <br> Has to be in fraction and simplified
MissTica
-4/9 x 5/8 = -20/72 or -5/18
3 0
3 years ago
Read 2 more answers
The sum of thee consecutive ODD integers is -21
Svetach [21]
15252 is the correct a set
5 0
3 years ago
Read 2 more answers
One is 5% of what number? Plz help best answer gets a Brainly thing
viktelen [127]
One is 5% of 20 I believe
4 0
3 years ago
In a circle with a radius of 26.9 m, an arc is intercepted by a central angle of 9π5 radians.
Maurinko [17]
Step 1
find the length of a circumference 
L=2*pi*r-------------> 2*pi*26.9=53.8*pi m

Step 2
find <span>the arc length
</span>if 2*pi radians --------------> 53.8*pi m
 (9/5)*pi radians------------> X

X=[(9/5)*pi*53.8*pi]/[2*pi]-------------> [9*53.8*pi]/[5*2]=152.04 m

the answer is 152.04 m

7 0
3 years ago
Read 2 more answers
Other questions:
  • What is the answer for this equation?
    8·1 answer
  • Connor created angle that formed 130°.What type of angle did he create?
    13·1 answer
  • Which of the following must be present for a check to be legitimate?
    13·2 answers
  • Find the measure of ΔABC. Show your work.
    13·1 answer
  • How many times does 2 go in to 56​
    12·1 answer
  • What it means by that
    11·1 answer
  • Evaluate this expression for a= 3 and b= 4.<br><br> A.6 B.9 C.11 D.18
    12·2 answers
  • The length of a a field is 1800 in. Use demesional analysis to convert this quality to yards
    14·1 answer
  • What is the simplified value of the exponential expression 27}?<br> оооо<br> 3<br> 9<br> 1/3<br> 1/9
    11·1 answer
  • Find the domain <br><br><br><br> Please help
    9·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!