#include #include "statistics.h" using namespace std; int main(int argc, const char *argv[]) { char input[256]; // max filename length for most systems float mean, min, max, mode; cout << "Please input a filename to use for data" << endl; cout << ">> "; cin >> input; write_data(input, 1000, 500); mean = get_mean(input); min = get_minimum(input); max = get_maximum(input); mode = get_mode(input); cout << "Mean: " << mean << endl; cout << "Min: " << min << endl; cout << "Max: " << max << endl; cout << "Mode: " << mode << endl; return 0; }