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

(c) Algorithm Provide algorithm for your proposed solution. You are required to provide detail algorithm in flowchart or pseudocode

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

Step: 3

blur-text-image

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

Intelligent Information And Database Systems Asian Conference Aciids 2012 Kaohsiung Taiwan March 2012 Proceedings Part 2 Lnai 7197

Authors: Jeng-Shyang Pan ,Shyi-Ming Chen ,Ngoc-Thanh Nguyen

2012th Edition

3642284892, 978-3642284892

More Books

Students also viewed these Databases questions