/**************************************** * File: stats.h * Author: S. Bogar * Date: 8/3/99 * Section 101 * SSN: 123-45-6789 * EMail: bogar@cs.umbc.edu * * Prototypes for the functions in stats.c *****************************************/ /******************************************** * Function: Sum * Usage: z = Sum (x, y) * * 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) * * 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) * * 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) * * 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) * * Input: two integers for which distance is * calulated * Output:Returns the absolute value of x - y. *********************************************/ int Dist (int x, int y) ;