Question: MAKE A FLOW CHART USING THIS CODE. C++ #include #include #include using namespace std; void sorting (int, int, int, int&, int& , int& ); void

MAKE A FLOW CHART USING THIS CODE. C++
#include
#include
#include
using namespace std;
void sorting (int, int, int, int&, int& , int& );
void standard(int, int, int, int, int, double&, double&,int&, double&);
int main()
{
double avg, sum,dev;
int mult;
int v, r, t;
int w;
int x;
int y;
int z;
int lowest, middle, highest;
cout<< "Please enter 3 numbers: ";
cin >> v >>w>>x;
sorting(v,w,x,lowest, middle, highest);
cout << lowest<< " "<< middle << " " << highest << endl;
cout<< "Please enter 5 numbers: ";
cin>>r>>t>>x>>y>>z;
standard(r, t, x, y, z, avg, sum, mult, dev);
cout << r << " " << t << " " << x << " " << y << " " << z << endl;
cout << "avg="<
return 0;
}
void sorting(int a, int b, int c, int& l, int& m, int& h)
{
if(a
{
h=c;
m=b;
l=a;
}
else if(a
{
h=b;
m=c;
l=a;
}
else if (b
{
h=c;
m=a;
l=b;
}
else if(b
{
h=a;
m=c;
l=b;
}
else if(c
{
h=a;
m=b;
l=c;
}
}
void standard(int n1, int n2, int n3, int n4, int n5,double& AVG, double& SUM, int& MULT,double& DEV)
{
AVG = (n1+n2+n3+n4+n5)/5;
MULT=n1*n2*n3*n4*n5;
SUM=n1+n2+n3+n4+n5;
DEV = sqrt((pow((n1 - AVG), 2) + pow((n2 - AVG), 2) + pow((n3 - AVG), 2) + pow((n4 - AVG), 2) + pow((n5 - AVG), 2))/5);
}

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!