#Include #Define SIZE 99
#Include #Define SIZE 99
#include <stdio.h>
#define SIZE 99
/* function prototypes */
void mean( const int answer[] );
void median( int answer[] );
void mode( int freq[], const int answer[] ) ;
void bubbleSort( int a[] );
void printArray( const int a[] );
/* process responses */
mean( response );
median( response );
mode( frequency, response );
} /* end main */
printf( "\n%s\n%s\n%s\n",
"********", " Mode", "********" );
/* initialize frequencies to 0 */
for ( rating = 1; rating <= 9; rating++ ) {
freq[ rating ] = 0;
} /* end for */
7, 8, 9, 8, 9, 8, 9, 7, 5, 3,
for ( j = 0; j < SIZE; j++ ) {
++freq[ answer[ j ] ];
} /* end for */
/* output results */
for ( rating = 1; rating <= 9; rating++ ) {
printf( "%8d%11d ", rating, freq[ rating ] );
printf( "%2d", a[ j ] );
} /* end for */