Question: this is runProgram.c this is getInput.c this is statitics.c and this is header file for statistics.c i have to get this result this is the

this is runProgram.c

this is getInput.c
this is statitics.c
and this is header file for statistics.c
i have to get this result

this is the result that i have to get.
but when i run this code in my terminal,

i'm done with the sum() only yet.
the result of sum came out zero. it's supposed to be 10.
i want to know where is the wrong part in the code and why zero came out not 10.
also make the average, sum of square, minimum and maximum code please.
extern void driver(); int main( ) \{ driver( ) \} // only include declaration once, by defining prepprocessor 'dummy variable' \#ifndef STATISTICS_H \#define STATISTICS_H extern double running_average( int add_number ); extern int sum( int number ); \#endif \{csci-vcf1: ingrid: 68\} runProgram (az) : Entered 2 Running Average 2.00 Entered --> 4 Running Average 3.00 Entered 1 Running Average 2.33 Entered 3 Running Average 2.50 End of input Summary Statistics: Sum: 10 Average: 2.50 Sum of Squares: 30 Minimum: 1 Maximum: 4 Assumes proper input Type a list of non-negative integers, below, one integer per line Indicate the END of input with any letter (az) : Entered 2 Running Average 2.00 Entered 4 Running Average 3.00 Entered 1 Running Average 2.33 Entered 3 Running Average 2.50 End of input Summary Statistics: Sum: 0
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
