Write a C program = 46.0ObeseAt the end of the program, determine the percentage of each weight status that havebeen calculated. The sample output should be as follows:: XXXXXXXXXXEnter height(m)...

Write a C programWrite a program that calculates the multiple body mass index (BMI) where the<br>program read multiple weight and height and stored it into a parallel array weight[]<br>and height[], then the program calculates and display BMI based on weight in<br>kilograms (kg) and height in meters (m) based on the following formula:<br>3.8<br>weight<br>BMI =<br>heightx height<br>For each BMI values, display the weight status of underweight, normal, overweight,<br>or obese, based on the following table:<br>BMI<br>< 30.0<br>< 36.0<br>< 46.0<br>Weight Status<br>Underweight<br>Normal<br>Overweight<br>>= 46.0<br>Obese<br>At the end of the program, determine the percentage of each weight status that have<br>been calculated. The sample output should be as follows:<br>: 1.72 100<br>Enter height(m) and weight (kg)<br>Enter more? 'Y' for yes, 'N' for no<br>: Y<br>: 1.56 79<br>Enter height (m) and weight(kg)<br>Enter more? 'Y'<br>for yes, 'N'<br>for no<br>: Y<br>Enter height(m) and weight (kg)<br>Enter more? 'Y' for yes, 'N' for no<br>: 1.63 67<br>: Y<br>: 1.51 45<br>Enter height (m) and weight(kg)<br>Enter more? 'Y' for yes, 'N' for no<br>Y<br>: 1.65 132<br>Enter height (m) and weight(kg)<br>Enter more? 'Y' for yes, 'N'<br>for no<br>: Y<br>: 1.69 63<br>Enter height (m) and weight (kg)<br>Enter more? 'Y' for yes,<br>'N' for no<br>: N<br>Height=1.72, Weight=100.00, BMI=33.80<br>Height=1.56, Weight= 79.00, BMI=32.46<br>Height=1.63, Weight= 67.00, BMI=25.22<br>Height=1.51, Weight= 45.00, BMI=19.74<br>Height=1.65, Weight=132.00, BMI=48.48<br>Height=1.69, Weight= 63.00, BMI=22.06<br>Percentage Underweight = 50.00<br>Percentage Normal<br>Percentage Overweight<br>Percentage Obese<br>= 33.33<br>= 0.00<br>= 16.67<br>.. ..<br>

Extracted text: Write a program that calculates the multiple body mass index (BMI) where the program read multiple weight and height and stored it into a parallel array weight[] and height[], then the program calculates and display BMI based on weight in kilograms (kg) and height in meters (m) based on the following formula: 3.8 weight BMI = heightx height For each BMI values, display the weight status of underweight, normal, overweight, or obese, based on the following table: BMI < 30.0="">< 36.0="">< 46.0="" weight="" status="" underweight="" normal="" overweight="">= 46.0 Obese At the end of the program, determine the percentage of each weight status that have been calculated. The sample output should be as follows: : 1.72 100 Enter height(m) and weight (kg) Enter more? 'Y' for yes, 'N' for no : Y : 1.56 79 Enter height (m) and weight(kg) Enter more? 'Y' for yes, 'N' for no : Y Enter height(m) and weight (kg) Enter more? 'Y' for yes, 'N' for no : 1.63 67 : Y : 1.51 45 Enter height (m) and weight(kg) Enter more? 'Y' for yes, 'N' for no Y : 1.65 132 Enter height (m) and weight(kg) Enter more? 'Y' for yes, 'N' for no : Y : 1.69 63 Enter height (m) and weight (kg) Enter more? 'Y' for yes, 'N' for no : N Height=1.72, Weight=100.00, BMI=33.80 Height=1.56, Weight= 79.00, BMI=32.46 Height=1.63, Weight= 67.00, BMI=25.22 Height=1.51, Weight= 45.00, BMI=19.74 Height=1.65, Weight=132.00, BMI=48.48 Height=1.69, Weight= 63.00, BMI=22.06 Percentage Underweight = 50.00 Percentage Normal Percentage Overweight Percentage Obese = 33.33 = 0.00 = 16.67 .. ..
Jun 11, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here