Курсовая работа: Система обработки научных данных
cout<<setw(5)<<a[i]<<setw(5)<<b[i]<<endl;
}
cout<<"The Line Of Regression of Y on X is \n";
cout<<"\t Y - "<<my<<" = "<<byx<<"( X -"<<mx<<" )";
cout<<endl;
cout<<"The Line Of Regression of X on Y is \n";
cout<<"\t X - "<<mx<<" = "<<bxy<<"( Y -"<<my<<" )";
cout<<endl;
cout<<"\n\nWould you like to estimate values of y or x based on the above equations\n";
cout<<"1. to estimate Y press 1\n";
cout<<"2. To estimate X press 2\n";
cout<<"3. Exit and return to previous menu press 3\n";
cout<<"enter choice?";
cin>>choice8;
clrscr();
float ex,ey;
if(choice8 == 1)
{ char ch = 'y';
while(ch=='y')
{
cout<<" enter the value of X";
cin>>ex;
ey = (byx*(ex- mx)) + my;
cout<<" The estimated value of Y = "<<ey<<endl;
cout<<" do you want to continue";
cin>>ch;
}
}
else if(choice8 == 2)