Informatics - BMI Calculator (Week 20)
Do you ever wonder if you're underweight or overweight, but you don't know how to calculate your BMI ( Body Mass Index). Body Mass Index (BMI) is a simple calculation used to determine if a person has a healthy body weight based on their height and weight. A BMI Calculator program is a simple program that calculates a person's Body Mass Index (BMI) based on their weight and height. It categorizes the BMI result into different health ranges such as Underweight, Normal weight, Overweight, or Obese based on standard BMI classifications. Here's the code of BMI Calculator program! //program BMICalculator.cpp #include <iostream> #include <iomanip> #include <cmath> using namespace std; float weight, height_cm, height_m, bmi; void calculateBMI (){ height_m = height_cm / 100.0; bmi = weight / (height_m * height_m); cout << fixed << setprecision(1); cout << "Your BMI score is " << bm...