int main()
{
char choice='e';
while(choice!='x')
{
cout<<"Enter choice (e) empirical (s) SI (x) exit";
//get parameters
.......................
if (choice=='s')
{
//transform to SI
......................
}
if ((choice=='s')||(choice=='e'))
{
//do the calculation
.......................
}
if (!((choice=='s')||(choice=='e')||(choice=='x'))
{
cout<<"wrong choice. try again";
}
}
}
Note that your wind velocity is in miles per hour, not meters per second as you ask on line 22. Also, it is missing from the formula. On line 26 you are missing some parentheses as well. THOSE ARE VERY IMPORTANT. Instead of pow(10,-6) you should use 1e-6