4
4
0
0
0
0

# stats.h

```

/****************************************
* File: stats.h
* Author: S. Bogar
* Date: 8/3/99
* Section 101
* EMail: bogar@cs.umbc.edu
*
* This file contains the function prototypes
* for the functions whose definitions are found
* in stats.c
*****************************************/

/********************************************
* Function: Sum
* Usage:    z = Sum (x, y)
*
* This function adds the two values passed in
* and returns their sum.
*
* Input: two integers to be added
* Output: Returns the sum of x and y.
*********************************************/
int Sum (int x, int y) ;

/*********************************************
* Function: Max
* Usage:    z = Max (x, y)
*
* This function determines which of the values
* passed in is larger.
*
* Inputs: two integers to be compared
* Output: Returns the larger of x and y.
*********************************************/
int Max (int x, int y) ;

/*********************************************
* Function: Min
* Usage:    z = Min (x, y)
*
* This function determines which of the values
* passed in is smaller.
*
* Inputs: two integers to be compared
* Output: Returns the smaller of x and y.
*********************************************/
int Min (int x, int y) ;

/*********************************************
* Function: Avg
* Usage:    z = Avg (x, y)
*
* This function determines which of the values
* passed in is smaller.
*
* Inputs: two integers to be compared
* Output: Returns average of x and y as a
*         *** double ***
*********************************************/
double Avg (int x, int y) ;

/*********************************************
* Function: Dist
* Usage:    z = Dist (x, y)
*
* This function calculates the distance between
* x and y on a number line.
*
* Input: two integers for which distance is
*        calulated
* Output:Returns the absolute value of x - y.
*********************************************/
int Dist (int x, int y) ;

```
[an error occurred while processing this directive]
Tuesday, 20-Sep-2005 14:04:13 EDT