/* The formula to calculate BMI (Body Mass Index) is a follows: BMI = 703*(weight in lb)/(height in inches)^2 For example, for weight 122 lb and height 60 the BMI=703*122/(60*60)=23.82 which is normal weight. Write a program that generates an array of integers of size 10, body weight in lb for 10 users. Range 90 – 200 and an array of integers of size 10, height in inches for 10 users, range 60 – 84. The program calculates BMI for each user and stores results in array of doubles. The program prints the array of BMIs and finds the numbers of users for each category listed below: BMI Categories: Underweight = <18.5 Normal weight = 18.5–24.9 Overweight = 25–29.9 Obesity = BMI of 30 or greater */ #include #include #include #define SIZE 20 //function prototypes void make_random_array(int A[], int size, int min, int max); void print_array(int A[], int size); int main(){ srand(time(NULL)); int i, weight[SIZE], height[SIZE],size=10, under=0,normal=0,over=0,obesity=0; double bmi; make_random_array(weight,size, 90,200); print_array(weight, size); make_random_array(height, size,60,84); print_array(height, size); for(i=0;i=18.5 && bmi <=24.9) normal++; else if(bmi >=25 && bmi <=29.9) over++; else obesity++; } printf("underweight=%d\n", under); printf("normal weight=%d\n",normal); printf("overweight=%d\n",over); printf("obesity=%d\n",obesity); return 0; } void make_random_array(int A[], int size, int min, int max){ int i; for(i=0;i