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
// 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
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