Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

sample output [ 1 ] New Statistician [ 2 ] Destroy Statistician [ 3 ] Add Data [ 4 ] Delete Data [ 5 ]

sample output
[1] New Statistician
[2] Destroy Statistician
[3] Add Data
[4] Delete Data
[5] Display Statistics
[6] QUIT
sample output if choice [1]
Create new statistician done!
sample output if choice [2]
Destroy current statistician done!
sample output if choice [3]
Add data to Statistician
Enter data: 50
STATISTICIAN DATA: 1020304050
sample output if choice [4]
Remove data from Statistician
Enter data: 30
STATISTICIAN DATA: 10204050
sample output if choice [5]
STATISTICIAN DATA: 10,20,304050
Minimum : 10
Maximum : 50
Range : 40
Mean(Average) : 30
Median : 30
Mode : All values appeared just once
Variance : 200
Standard Deviation: 14.142135623731
Create a program to help a statistician customer to automate some of his work. Implement the following
required operations of LIST and STATISTICS with the given data structure and function prototypes:
#ifndef STATISTICS_H
#define STATISTICS_H
#define TRUE 1
#define FALSE 0
typedef bool Boolean;
typedef struct node *nodePtr;
struct node {
int item;
nodePtr next;
};
typedef nodePtr Statistician, DataStore;
Statistician newStatistician();
void destroyStatistician(Statistician **s);
void add(Statistician 5, int x);
void remove(Statistician s, int x);
void displayData(Statistician s);
Boolean isEmpty(Statistician s);
int minimum(Statistician s);
int maximum(Statistician s);
int range(Statistician s);
float mean(Statistician s);
float median(Statistician s);
Datastore mode(Statistician s);
float variance(Statistician s);
float standardDeviation(Statistician s);
#endif
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Machine Learning And Knowledge Discovery In Databases European Conference Ecml Pkdd 2015 Porto Portugal September 7 11 2015 Proceedings Part 2 Lnai 9285

Authors: Annalisa Appice ,Pedro Pereira Rodrigues ,Vitor Santos Costa ,Joao Gama ,Alipio Jorge ,Carlos Soares

1st Edition

3319235249, 978-3319235240

More Books

Students also viewed these Databases questions

Question

6. Describe why communication is vital to everyone

Answered: 1 week ago