Question
/ecessary imports #include #include #include using namespace std; //function to calculate mean int Mean(int mean_array[], int size, int sum) { int mean = 0; mean
/ecessary imports #include
using namespace std;
//function to calculate mean int Mean(int mean_array[], int size, int sum) { int mean = 0; mean = sum / size; return mean; };
//function to calculate standard deviation int SD(int sd_arr[] ,int mean, int sum, int size) { int var = 0; for( int j = 0; j
//function to find the upper value int findUpper(int arr[], int size) { int max = 0;
for ( int u = 0; u
//function to find the lower value int findLower(int arr[], int size) { int min = arr[0];
for ( int l = 0; l //main function or driver program int main() { // declaring variables int arr[100]; int n = 0; int size = 0; int sum = 0; //Enter the size of the array printf("Enter the size of number you want to enter:"); scanf("%d",&size); //fill the array printf("Enter the numbers:"); for( int i = 0; i //find the sum of the array for ( int i=0; i // calling appropriate functions and printing the output. int mean = Mean(arr,size,sum); cout int sd = SD(arr,mean, sum,size); cout int upperValue = findUpper(arr,size); cout int lowerValue = findLower(arr,size); cout (iv) TESTING Conduct suitable testing and record the results. VERIFICATION Show relevant activities to verify the result of the program. Note: Take one of the results in testing as an example to perform verification
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