PPS Mini Project
PPS Mini Project
The Body Mass Index (BMI) is a measure that helps determine whether a person has a healthy body
weight for a given height. It is an essential health indicator and is widely used by healthcare
professionals to evaluate an individual's weight status (underweight, normal weight, overweight, or
obese). This Health Calculator will compute the BMI and categorize it into different health ranges
based on standard BMI values. The system will also visualize the results in graphical and tabular
formats to enhance understanding.
1. Problem Statement
The problem at hand is to design a MATLAB program that calculates a person's BMI based on their
height and weight and then categorizes the result into one of the following categories:
Obesity: BMI ≥ 30
The program should allow the user to input their height (in meters) and weight (in kilograms),
calculate the BMI, and display the result in both text and graphical forms. Additionally, a table
showing the BMI categories will be displayed.
Input:
Output:
o BMI ≥ 30 → "Obesity"
5. Code
matlab
Copy code
category = 'Underweight';
else
category = 'Obesity';
end
disp('BMI Categories:');
disp(bmi_table);
figure;
colors = ['b', 'g', 'y', 'r']; % Color coding for each category
title('BMI Categories');
xlabel('Category');
ylabel('BMI Range');
ylim([0 35]);
6. Output
Sample Output:
yaml
Copy code
BMI Categories:
BMI_Range Category
__________ ______________
18.5 Underweight
29.9 Overweight
30 Obesity
7. Conclusion
The MATLAB Health Calculator successfully calculates the BMI based on the height and weight inputs
and classifies the result into one of the four health categories. The program provides both textual
and graphical output for better understanding and visualization of BMI categories. The table clearly
displays the BMI ranges for each health category, while the bar chart provides a visual
representation. This tool can be helpful for individuals to monitor their health status and take
necessary actions to maintain a healthy weight.
8. References
Member 2: Implemented the code, including the input/output handling and table creation.
Member 3: Designed the graphical representation and contributed to styling and labels in
the chart.
Member 4: Verified the output and performed testing to ensure accuracy of the program