//Programming Technique
//group-8
//MD.Tawfiquzzaman    A20EC4036
//Muhammad Zaki Mufthi   A20EC0325






#include<iostream>
#include<conio.h>
#define newline '\n'

using namespace std;

void getBMI(double, double);  //Function prototype
void getstatus(double);       //Function prototype

int main()
{
	int n;
	double weight, height;
	getBMI(weight, height);
	
	
}
void getBMI(double weight, double height)   //Function header
{
	int n=1;
	double BMI;
	
	
	while(n!=0)
	 {
	 	cout<<"PLease enter the weight of student "<<n<<"= ";
	 	cin>>weight;
	 	 	
	 	cout<<"Please enter the height of student "<<n<<"= ";
	 	cin>>height;
	 	 	
	 	BMI= (weight/ (height*height )) * 703;
	 	 	
	 	if(BMI>0)
	 	{
		 cout<<"The BMI of student "<<n<<" is= "<<BMI<<newline;
	 	
	 	cout<<"The status is ";
	 	getstatus(BMI);
	 	cout<<newline;
	 	cout<<"Thank you for helping be have a nice day!!!"<<newline;
	 	n= n++;
	 	
	    }
	    else
	    {
	    	return;
		}
	 }
	
}
void getstatus(double BMI)
{
	if(BMI<18.5)
	 {
	 	cout<<"underweight";
	 }
	else if(18.5<BMI && BMI<24.9)
	 {
	 	cout<<"normal weight";
	 }
	else if(25<BMI && BMI<29.9)
	 {
	 	cout<<"overweight";
	 }
	else if(BMI>=30)
	 {
	 	cout<<"obese";
	 }
		
}
