# Computer science

If we have any five numbers. how do we find maximum and minimum number of those.

You take the first number and store it in variable Min and Max. Then you take the second number. If that number is larger than the variable Max you overwrite Max and store that varible there. If not then you check if it is smaller than the value stored in Min. If so, you store it there, overwriting the previous stored value. You repeat this for all five variables.

1. 👍 0
2. 👎 0
3. 👁 112
asked by Sing

## Similar Questions

1. ### math

Please help me to find the five-number summary of the following set of numbers.338, 226, 149, 391, 247, 501, 300, 223, 320 According to a definition I found online, "The five-number summary of the data consists of the minimum data

asked by carmen on April 23, 2007
2. ### Math

I really really need help on this one. I have no clue on how to do it; here it is... Determine the maximum and minimum values of the following set of numbers. 3, -36/7, -1, -2/3, 5/4, -5, 26/9 Express the fractions as mixed

asked by G. Torres on July 28, 2007
3. ### Caluclus

Find the absolute maximum and absolute minimum of f on the interval (-1,2]: f(x)=(-x^3+x^2+3x+1)/(x+1) A. Maximum: (1, -2); Minimum: (-1, 2) B. Maximum: (1, -2); Minimum: None C. Maximum: None; Minimum: None D. Maximum: None;

asked by Anonymous on January 11, 2015
4. ### Please check my Calculus

1. Find all points of inflection: f(x)=1/12x^4-2x^2+15 A. (2, 0) B. (2, 0), (-2, 0) C. (0, 15) D. (2, 25/3), (-2, 25/3) E. none of these I got D. I found the second derivative and equaled it to 0 and solved for x. I plugged the x

asked by Anonymous on January 12, 2015
5. ### calculus

there are no examples of this type of problem in my book so if you could help walk me through it - that would be extremely helpful. thanks ahead of time. Find the extreme values of the function on the interval and where they

asked by K.T. on December 15, 2014
6. ### math

I'm having some troubles with these. Thanks in advance. If a>0 find the minimum value. If a

asked by Andrea on October 31, 2006
7. ### calculus

Find the absolute extrema of the function (if any exist) on each interval. (If an answer does not exist, enter DNE.) f(x) = square root of (25 − x^2) (a) [−5, 5] minimum (x, y) = (smaller x-value) (x, y) = (larger x-value)

asked by Sagar on April 5, 2016
8. ### Algebra- Maximum and minimum.

I don't understand how to find the maximum and minimum. Determine whether the given quadratic function has a minimum value or maximum value. Then find the coordinates of the minimum or maximum point. 15.f(x) = -x2 + 2x - 4 20.f(x)

asked by Niki on October 13, 2007
9. ### Elementary Math

Find the missing numbers and landmarks for the set of numbers: 48, 50, 51, 51, 57, 59, 60, 63, 69, ______ , 76, ______ . A Range: _____ B. Mode: __76__ C. Minimum: __48__ D. Maximum __76__ Help - we don’t understand this, or see

asked by Trudy & Mark on October 2, 2006
10. ### Calculus (pleas help!!!)

Find the absolute maximum and absolute minimum values of the function f(x)=(x−2)(x−5)^3+11 on each of the indicated intervals. Enter -1000 for any absolute extrema that does not exist. (A) Interval = [1,4] Absolute maximum =

asked by Cady on April 5, 2011
11. ### Calculus (pleas help!!!)

Find the absolute maximum and absolute minimum values of the function f(x)=(x−2)(x−5)^3+11 on each of the indicated intervals. Enter -1000 for any absolute extrema that does not exist. (A) Interval = [1,4] Absolute maximum =

asked by Cady on April 5, 2011

More Similar Questions