![]() |
School of Engineering and
Applied
Science Department of Computer Science CSci 53 -- Introduction to Software Development http://www.seas.gwu.edu/~csci53/spring05 Prof. Michael B. Feldman mfeldman@gwu.edu |
| All
these methods are public
static;
none of them write any output to the console. In each case, numbers is the array that holds
the integer values and howMany
indicates how many values are present. The class also contains a
private method, SelectionSort,
which is fully coded and can be used by other methods (like median). /** * Returns smallest value in array */ public static int minimum (int[] numbers, int howMany) /** * Returns largest value in array */ public static int maximum (int[] numbers, int howMany) /** * Returns average of values in array */ public static double average (int[] numbers, int howMany) /** * Returns median of values in array */ public static double median (int[] numbers, int howMany) |
Your grade will be calculated on a 20-point basis, as follows:
MBF 4/19/05