Question: in C please Write a function that returns as a double-precision number the average of elements from index to index inclusively, assuming indices and are

in C please

in C please Write a function that returns as a double-precision number

Write a function that returns as a double-precision number the average of elements from index to index inclusively, assuming indices and are in range. The function has the following inputs, in this order: - an array of integers - an integer number of elements - an integer - an integer Sample Test Case You may optionally write a function so that you can perform appropriate tests on the function. It's up to you to decide what code you write in to perform the testing - but you should consider more test cases other than the sample test case given above. Any code you write must also use good programming style, as discussed below

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!