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]
4 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]4 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
A steel factory manufactures and sells steel beams
tankabanditka [31]

Answer:

That is very nice. I like steel factory's that manufacture and sell steel beams, they are my favorite!! :]

The question is bland...

And honestly what even is the question?

Step-by-step explanation:

I'll help but explain the question further

4 0
3 years ago
According to his car odometer,Alfonso drove a total of 10 kilometers from his house to the movie theater and back again approxim
Brums [2.3K]

Answer:

It is approximately 3.10 miles from Alfonso's house to the movie theater

Step-by-step explanation:

First, identify what you know:

1) Alfonso drove from his house TO the movie theater, and then BACK to his house.

2) Alfonso's odometer shows him that the ENTIRE trip was 10 miles.

If the entire trip was 10 miles, and he only went to the move theater, AND took the same route back, then we simply divide 10 in half! This will give us the distance from his house the the movie theater, or rather, half of the trip, in kilometers.

10/2 = 5 kilometers.

Now, what is 5 kilometers in miles? Well, one mile is equal to 1.60934 kilometers, and one kilometer is equal to 0.621371 miles. So, simply multiply!

5 km  x 0.621371 miles = 3.106855

The approximate distance from his house to the theater is 3.10 miles!

Hope this helps! :)

3 0
4 years ago
The tech ed teacher needs to cut boards for the 6th grade propeller project that are 3/4 feet long.How many propellers can he ge
QveST [7]

Answer:

  zero

Step-by-step explanation:

1/2 feet is less than 3/4 feet, so is insufficient length for even one propeller. No propellers can be cut from the board.

5 0
3 years ago
How do you factor 8x+56?
Aleksandr [31]
If you mean how do you get x by it's you divide both sides by 8, to cancel out the multiplication between x and 8, meaning that it would end up being x=7, sorry if that didn't answer your question correctly. 
8 0
4 years ago
Read 2 more answers
What is an angle bisector?
My name is Ann [436]
An angle bisector is a line or ray that divides an angle in half
5 0
3 years ago
Read 2 more answers
Other questions:
  • The cost of a repair, which depends on the hours it takes to make the repair, is $200. Which of the following best shows this in
    6·1 answer
  • During an evening out, Dean paid a cab driver $20. He then spent $25 on dinner and half of his remaining money on a painting. He
    12·1 answer
  • Use what you know about zeros of a function and end behavior of a graph to choose the graph that matches the function f(x) = (x
    9·1 answer
  • Your cousin wants to buy a coat and can spend at most $95. He has a coupon for $20 off any coat. Write an inequality to find the
    12·1 answer
  • Please help on 10 thank you so michy
    13·1 answer
  • -17/40 as a decimal show how pls
    12·2 answers
  • Figure this out for 15 points
    6·1 answer
  • Compare: 8/12 to 6/9 which one is greater
    5·2 answers
  • Evaluate the function f (x) -x^2 +3x+13 find (-10)
    10·2 answers
  • 10+x &gt; 17 solving one step inequalities
    15·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!