Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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: 0Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started