Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

this is runProgram.c

image text in transcribed

this is getInput.c

image text in transcribedthis is statitics.c

image text in transcribedand this is header file for statistics.c

i have to get this result

image text in transcribed

this is the result that i have to get.

but when i run this code in my terminal,

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Understanding Oracle APEX 5 Application Development

Authors: Edward Sciore

2nd Edition

1484209893, 9781484209899

More Books