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
How do you find the limit of (2+x)^3 -8/x as the limit approaches 0? Please explain how you did it.​
RoseWind [281]

Answer:  12

<u>Step-by-step explanation:</u>

Expand (2 + x)³, factor out the x, then replace x with zero.

(x+2)^3 = (x+2)(x+2)(x+2)\\.\qquad \quad =(x+2)(x^2+4x+4)\\.\qquad \quad =x(x^2+4x+4)+2(x^2+4x+4)\\.\qquad \quad =x^3+4x^2+4x\quad +2x^x+8x+8\\.\qquad \quad =x^3+(4x^2+2x^2)+(4x+8x)+8\\.\qquad \quad =x^3+6x^2+12x+8

\dfrac{(x+2)^3-8}{x}=\dfrac{(x^3+6x^2+12x+8)-8}{x}=\dfrac{x^3+6x^2+12x}{x}\\\\\\=\dfrac{x(x^2+6x+12)}{x}=x^2+6x+12\\\\\\ \lim_{x \to 0} \quad x^2+6x+12\quad =\quad 0+0+12\quad =\quad \large\boxed{12}

5 0
3 years ago
The x-axis and y-axis are two lines that create the coordinate plane. The x-axis is a horizontal line and the y-axis is a vertic
Stella [2.4K]

Answer:

what are you asking????

Step-by-step explanation:

4 0
4 years ago
OTHER ONE WASNT 50. 50 POINTS AND BRAINLIST IF GET RIGHT
nexus9112 [7]

Answer:

600 im pretty sure

Step-by-step explanation:

5 0
3 years ago
A machine makes 600 candies a minute. At this rate, how long will it take this machine to make 1800 boxes, each of which contain
Marta_Voda [28]
1800 boxes with 24 candies each

Total = 1800 * 24 = 43 200 candies

The machine makes  600 candies in 1 minute

                                 1 candy would take  (1/600) minute

                             43 200 candies would take    43200 * 1/600 = 72

                                                                     = 72 minutes.

Therefore the 1800 boxes would be done in 72 minutes.
3 0
3 years ago
Pls help me with this pls
Virty [35]
(Sorry if I get something wrong, it’s straining my eyes to see what letter) 1. A 2. U 3. S 4. J 5. I 6. M 7. H 8. B 9. Y 10. L


To find where a coordinate is on a graph you need to start with the first number (x) (let’s say the coordinate is (2, -3), so 2) and find where it is ( you always find where the first number is on the x-axis and the second number on the y, remember that by x, y and x comes first.) Then, you need to find the second number (-3) then you need to find where they meet. So 2, -3 is on the letter I.

To find what coordinates a point that’s already been plotted is to see, for example, L, the two numbers that meet where L is are -4, -3, remember whatever was on the x axis comes first, -3, -4 is not the same.

Hopefully this makes sense, I don’t normally answer stuff.
6 0
3 years ago
Other questions:
  • Anya's team won 5 out of every 7 games this season
    11·1 answer
  • 4р + Зp - 27 +р*<br> help
    9·1 answer
  • What is 2/4 in simplest form dude?
    15·2 answers
  • 42-15 dived by 5 step by step :D
    9·1 answer
  • In a golf tournament Ned was 6 under par on Saturday and 7 over par on Sunday. What was the difference in his score on Sunday co
    6·1 answer
  • Rectangle VWXY is dilated by a scale factor of 2 to form rectangle V'W'X'Y'. Side X'Y'
    11·1 answer
  • The density of a block of cheese is 8 g/cm3. If the mass of the block is 260 g, the width of
    9·1 answer
  • Need help right now please
    5·1 answer
  • A study will be conducted to investigate whether there is a difference in mean tail lengths between two populations of snow leop
    11·1 answer
  • A particle starts from rest at a fixed point A and moves in a straight line with an acceleration which, t seconds after leaving
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!