Friday
August 29, 2014

Homework Help: Computer science

Posted by Sing on Friday, December 15, 2006 at 8:07pm.

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.

Answer this Question

First Name:
School Subject:
Answer:

Related Questions

math - Please help me to find the five-number summary of the following set of ...
C programming - Question: Write a program that reads integers from the keyboard ...
Grade 8 Math - Can you write them in Mathematical/numbers form I'll solve them ...
Algebra I - The sum of three numbers is 147. The second number is 4 more than ...
Math(Urgent) - Compute the maximum product for two positive numbers x and y with...
math - The triangular numbers are the numbers 1, 3, 6, 10, 15, . . .; the square...
Math(Please, please help) - Compute the maximum product for two positive numbers...
Math - I really really need help on this one. I have no clue on how to do it; ...
MATH - The triangular numbers are the numbers 1, 3, 6, 10, 15, . . .; the square...
Algebra - 42. Which number best represents this set of data: 5, 5, 5, 6, 5, 5, 5...

Search
Members