Question: 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
 sample output [1] New Statistician [2] Destroy Statistician [3] Add Data

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!