Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR C

C programming statician

#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 s, 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 
 
PREVIOUS NEXT
Tagged: #C #programming #statician
ADD COMMENT
Topic
Name
8+1 =