17. BMI Calculator Beginner Projects

1. Basic Features


2. Workflow

  1. User Input:

    • Ask the user to input their weight (specify the unit as kilograms or pounds).
    • Ask the user to input their height (specify the unit as meters or feet/inches).
  2. BMI Calculation:

    • If the inputs are in pounds/feet, convert them to kilograms and meters using appropriate conversion factors.
    • Apply the BMI formula to calculate the user’s BMI.
  3. Display Result:

    • Show the user their BMI along with a corresponding category:
      • Underweight (BMI < 18.5)
      • Normal weight (BMI 18.5 - 24.9)
      • Overweight (BMI 25 - 29.9)
      • Obese (BMI ≥ 30)

3. Error Handling


4. Optional Features


5. Learning Outcomes

This project will give you practice with: