0% found this document useful (0 votes)
12 views2 pages

Lab 10 Q2

Uploaded by

Yousuf Karim
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
12 views2 pages

Lab 10 Q2

Uploaded by

Yousuf Karim
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 2
Q2: Modify the above program which implements the nested function. In the function calculateBMI, a function named decisionBMI should be called, which uses the BMI calculated value as input and take decision that whether you are over weight, underweight or normal? Note: weigh in kilogram = weight * 0.45359237. Hight in feet= inches * 0.0254. BMI= weight in kilogram/(hight in fee)*2. A BMI of 25.0 or more is overweight, while the healthy range is 18.5 to 24.9. BMI applies to most adults 18-65 years. SOURCE CODE: Tt] finclade > heign 26 calculaveaMt (weight, height); 7 return 0; OUTPUT: Tastes tin inches: 74.4 ry: Underweight Process returned @ (0x0) execution time : 6 Press any key to continue.

You might also like