I need homework help! This isn't an assignment that is due so please no comments saying that I need to figure this out on my own. Just doing some extra practice to prepare for my exam.
I need to write a main program that counts the number of occurrences of the number 6.0 in a large array of doubles and then prints out the number of elements in the array and the number of values that are 6.0. Also, compute and print the average value to 7 decimal places of all the elements in the array.
Use a for loop.
The array fArray[] is defined in a file called arraypractice.h . Add it to your project directory and refer to it in your code as follows:
int main(void)
{
#include "arraypractice.h“
.
I have only gotten as far as determining the length of the array and I don't know where to go from here:
int main(void)
{
#include "arraypractice.h"
int n;
n = sizeof(fArray);
int size;
printf("Size of the given array is %d\n", n / sizeof(double));