Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

/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

image text in transcribed

/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 = 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 max) { max = arr[u]; } } return max; };

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Internals A Deep Dive Into How Distributed Data Systems Work

Authors: Alex Petrov

1st Edition

1492040347, 978-1492040347

More Books

Students also viewed these Databases questions

Question

Why do HCMSs exist? Do they change over time?

Answered: 1 week ago