I think the above code is self explanatory. It displays BMI category according to weight and height entered by person. Till this I have done. The last line of question says :Program should be able to check after each calculation if the person wants to exit the program or continue by providing response as "yes" or "no". How to do this part?
char ok = 'y';
while (ok == 'y')
{
cout << "something..\n";
cout << "something else..\n";
cout << "Do you wish to continue? y or n \n";
cin >> ok;
}
However, there is a more important problem to be fixed. Because of the way you have worded the if-else statements, there are a lot of gaps, in-between values which are not caught until the very last else statement.
Any of these values for bmi will output "Morbid Obesity".