Курсовая работа: Система обработки научных данных
clrscr();
cout<<"The values of individual observations are ";
for(i=0;i<n;i++)
cout<<a[i]<<" ";
cout<<endl;
variance = sum/n;
break;
}
case 2:
{
cout<<"Enter the no of data";
cin>>nn;
cout<< "Enter the class interval size";
cin>>ci;
cout<<"Enter the upper most level";
cin>>up;
cout<<" Enter the lowermost level";
cin>>lo;
cout<<"Enter the frequency in order\n";
for(int i=0;i<nn;i++)
{ b[i] = ((up + ci) + up)/2;
up = up + ci;
cout<<" Freq"<<i+1<<" =";
cin>>c[i];
}
for(i=0;i<nn;i++)
{
d[i] = b[i] - b[nn/2];
e[i] = d[i]/ci;