Question
An accounting firm has hired you as a consultant to write statistical software. One of the first functions you will write is to calculated the
An accounting firm has hired you as a consultant to write statistical software. One of the first functions you will write is to calculated the "mean" (average) of values from a number of inputs values.
There are four functions. One (print()) is written for you. You are asked to write the three other functions.
You will write three functions: one to get number of inputs user wants to provide, second to get all the input values from the user, and the third to calculate the mean.
The values that user inputs will be stored in an array declared inside the "process()" function.
The "declarations" (prototypes) of the functions you have to write and how they are invoked (called) is provided below. You are asked to "define" the functions.
#define MAX_NUMBER_OF_INPUTS //Function prototypes
int getNumberOfInputs(); //get the number of inputs that user intends to provide from the user. void getInputs(double* pInputs, int numberOfInputs); void print(double* pInputs, int numberOfInputs); double getMean(double* inputs,int numberOfInputs);
//Provide definition of getNumberOfInputs() here [7 points] //Provide definition of getInputs() here [8 points] //The definition of print() void print(double* pInputs,int numberOfInputs ){ int i; for(i=0;i
Step 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