Question: Base on the C++ example 1, create the mean, median and mode functions for the program. //This program introduces the topic of survey data analysis.

 Base on the C++ example 1, create the mean, median andmode functions for the program. //This program introduces the topic of surveydata analysis. //It compute the mean, median and mode of the data.

Base on the C++ example 1, create the mean, median and mode functions for the program. //This program introduces the topic of survey data analysis. //It compute the mean, median and mode of the data. \#include \#include > using std::cout; using std::endl; using std::setw; void mean(const int [], int); void median(int [], int); void mode(int [], int [], int); void bubbleSort(int [], int); void printArray(const int [], int); int main () \{ constint responseSize =99 int frequency [10]={0}, response[responseSize] = {6,7,8,9,8,7,8,9,8,9, 7,8,9,5,9,8,7,8,7,8 6,7,8,9,3,9,8,7,8,7 7,8,9,8,9,8,9,7,8,9 6,7,8,7,8,7,9,8,9,2 7,8,9,8,9,8,9,7,5,3 5,6,7,2,5,3,9,4,6,4 7,8,9,6,8,7,8,9,7,8 7,4,4,2,5,3,8,7,5,6 4,5,6,1,6,5,7,8,7} mean( response, responseSize); median( response, responseSize); mode( frequency, response, responseSize); return0; \}

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!