Code this in C. Project name : Survey Filenames: survey.h, survey.c, main.c Survey Data Analysis Computers are commonly used to compile and analyze the results of surveys and opinion polls. Each response is a number from 1 to 9. The program computes for the mean, median and mode of the values. Start with a minimum of 10 responses. If there would be more responses, increase the size. Mean – arithmetic average Median – middle value Mode – value that occurs most frequently The following are the declarations that will be used by the program: int SIZE 10 typedef int* Statistician; void add(Statistician answer, int *count, int *SIZE, int item); - Doubles the size of answer when it is full - Data should be sorted after every insertion. float mean(Statistician answer, int count); float median(Statistician answer, int count); int max(Statistician answer, int count); int min(Statistician answer, int count); int range(Statistician answer, int count); void mode(int freq[], int *freqsize, Statistician answer, int count); - Determines the mode by counting the number of responses of each type, then selecting the value with the greatest count. void histogram(Statistician answer, int count); - Produces a histogram to aid in determining the mode graphically. Use asterisks to represents number of occurrences.

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

Code this in C.

Project name : Survey
Filenames: survey.h, survey.c, main.c

Survey Data Analysis
Computers are commonly used to compile and analyze the results of surveys and
opinion polls. Each response is a number from 1 to 9. The program computes for the mean,
median and mode of the values. Start with a minimum of 10 responses. If there would be more
responses, increase the size.
Mean – arithmetic average
Median – middle value
Mode – value that occurs most frequently
The following are the declarations that will be used by the program:
int SIZE 10
typedef int* Statistician;
void add(Statistician answer, int *count, int *SIZE, int item);
- Doubles the size of answer when it is full
- Data should be sorted after every insertion.
float mean(Statistician answer, int count);
float median(Statistician answer, int count);
int max(Statistician answer, int count);
int min(Statistician answer, int count);
int range(Statistician answer, int count);
void mode(int freq[], int *freqsize, Statistician answer, int count);
- Determines the mode by counting the number of responses of each type, then
selecting the value with the greatest count.
void histogram(Statistician answer, int count);
- Produces a histogram to aid in determining the mode graphically. Use asterisks to
represents number of occurrences.

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Follow-up Questions
Read through expert solutions to related follow-up questions below.
Follow-up Question

I need this in C language please.

Solution
Bartleby Expert
SEE SOLUTION
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY