Курсовая работа: Система обработки научных данных
cout<<"Mean = "<<mean<<endl;
cout<<"The sum of deviations = "<<s2<<endl;
variance = s2/s3;
cout<<setw(15)<<s<<setw(20)<<s4<<endl<<endl;
for(i=0;i<nn;i++)
{
cout<<setw(15)<<a[i]<<setw(20)<<b[i]<<endl;
}
break;
}
default:
{cout<<" Sorry wrong choice";
getch();
data();
}
}
cout<<" Variance ="<<variance;
getch();
int z=1;
while(z==1||z==2)
{
cout<<"\n\n\n\n\nPress 1 to return to previos menu";
cout<<"\nPress 2 to exit";
cin>>z;
if(z==1)
menu2();
else if(z==2)
exit(0);
else cout<<"Wrong choice";