// find the mean
for (int count=0; count<=(size-1); count++)
{
sum=sum+R[count];// add up all numbers in the array
}
mean= ;
// Sort the data
for( int i=0; i<=size-2; i++)
{
for( int j=i+1; j<=size-1; j++)
{
if (R[j]>R[i])
// swap R[i] and R[j]
{
temp=R[i];
R[i]=R[j];
R[j]=temp;
}
}
}
for( int k=0; k<=size-1; k++)
{
sum1=sum1+(R[k]-mean)*(R[k]-mean);// add up (xi-mean)^2
cout<<R[k]<<endl;// print the sorted array
}
max= ;
min ;
range= ;
variance=sum1/ ;
std=sqrt(variance);
cout<<"The mean is "<<mean<<endl;
cout<<"The maximum is "<<max<<endl;
cout<<"The minimum is "<<min<<endl;
cout<<"The range is "<<range<<endl;
cout<<"The Variance
cout<<"The standard deviation is
/*double x=3, y=5, sum=0, sub, mul, div;
cout<<"Welcome to EGR120! Today is April 7"<<endl<<endl;
cout<<"Please enter two integers, x and y. The value of y can not be zero."<<endl;
cin>>x>>y;