Centers for disease control to calculate if each pair


bmiclassifier.c First read in a number (integer). Then read in a sample of that many pairs of numbers, where each pair is two doubles, first height in inches, and then weight in pounds of a person. For each pair calculate the BMI (body mass index). Use the table below and the BMI formula at the Centers for Disease Control to calculate if each pair represents an underweight, normal, overweight or obese person. After reading the sample of as many pairs as specified in the first input, print out the number of underweight, normal, overweight and obese people in the input sample. If more than 50% of the people in the sample are overweight or obese, print out a warning message indicating the population may have unhealthy levels of weight. 

BMI
Weight Status
< 18.5 Underweight
18.5<= bmi < 25 Normal
25.0<= bmi < 30 Overweight
>= 30.0 Obese

$ ./bmiclassifier.out 
How many peoples? > 3
Enter height (inches) and weight (lbs) (3 left) > 60 193
Enter height (inches) and weight (lbs) (2 left) > 72 193
Enter height (inches) and weight (lbs) (1 left) > 60 120
Processed 3 people, and found:
Under weight: 0
Normal weight: 1
Over weight: 1
Obese: 1 

Request for Solution File

Ask an Expert for Answer!!
Programming Languages: Centers for disease control to calculate if each pair
Reference No:- TGS092986

Expected delivery within 24 Hours