#include #include "summation.h" #include "average.h" using namespace std; int main() { //double array []; int num = 0; int maxnum = 0; double average, summ; cout << "How many numbers do you want to enter?: "; cin >> maxnum; double array [maxnum]; int x = 0; while(x < maxnum) { array[x] = 0; x++; } while(num < maxnum) { cout << "Enter a number: "; cin >> array[num]; num++; } //cout << "this is a marker" << endl; average = avg(array, maxnum); summ = sum(array, maxnum); cout << "Sum is: " << summ << endl; cout << "Average is: " << average << endl; }