Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

Students also viewed these Databases questions

Question

1. How do most insects respire ?

Answered: 1 week ago

Question

Who is known as the father of the indian constitution?

Answered: 1 week ago

Question

1.explain evaporation ?

Answered: 1 week ago