Question: THIS IS MY CODE. I NEED HELP FILLING IN THE BLANKS PLEASE #include #include // library that defines the bool, true, and false keywords //

THIS IS MY CODE. I NEED HELP FILLING IN THE BLANKS PLEASE

#include #include // library that defines the bool, true, and false keywords

// function that will sum up the values in an array double sum( double theArray[], int theArraySize ) { double theSum = 0; // we'll store the sum here // iterate thru all values in theArray for( int x = 0; x < theArraySize; x++ ){ // add the next value to theSum theSum += theArray[ x ]; } return theSum; // give back the value of theSum }

// function that will find the average value of an array double average( double theArray[], int theArraySize ) { // put your code here double theSum = 0; //stores the sum //goes through all the values in the array for( int x = 0; x < theArraySize; x++ ){ theSum += theArray[ x ]; } return theSum / theArraySize; //give back the average value of the array by dividing the sum and array size

}

// function that will find the standard deviation of an array // stdev // put your code here

// function that will determine whether a value is odd or even bool isOdd( int theValue ) { // put your code here

}

// function that will determine whether a value is prime or not bool isPrime( int theValue ) { // put your code here

}

int main() { // prompt the user for 10 numeric values, store them in an array, // and then display the sum, average, and standard deviation to the user // Then ask for an integer, and tell the user whether it is odd/even, prime/composite.

return 0; }

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!