App02 BMI Calculator - LeoJuster/ConsoleApps15 GitHub Wiki
Your BMI, or Body Mass Index, is a measure of your weight compared to your height. Accurate assessments of obesity are important, as being overweight or obese significantly increases your risk of a variety of medical conditions including type 2 diabetes, heart disease and cancer.
For most adults, BMI gives a good estimate of their weight-related health risks. If your BMI is over 35, your weight is definitely putting your health at risk, regardless of the factors below. However, there are some situations where BMI may underestimate or overestimate these risks in the 25-35 BMI range. The main ones are:
- Children
- Pregnant women.
- Muscle Builders
- BAME: Black, Asian and other minority ethnic groups.
- Output a heading and an introduction explaining the application
- Allow the use a choice of imperial (weight in stones and pounds, height in feet and inches) or metric units (weight in Kg, and height in metres)
- Prompts the user to enter their weight and height.
- Calculates and displays their BMI value.
- BMI = (weight in kg) / (height in metres)2
- BMI = (weight in pounds) x 703 / (height in inches)2
- Outputs the WHO (World Health Organisation) weight status as illustrated below
- Displays a message explaining to BAME groups their extra risks.
- A Mobile Phone App version of the calculator
WHO Weight Status | BMI kg/m2 |
---|---|
Underweight | < 18.50 |
Normal | 18.5 - 24.9 |
Overweight | 25.0 - 29.9 |
Obese Class I | 30.0 - 34.9 |
Obese Class II | 35.0 - 39.9 |
Obese Class III | >= 40.0 |
- Starting the Application
- Inputting values
- Outputting results
- Displaying a message to BAME groups
Please replace these examples
Please replace these examples



The student should either create a table of Black Box tests which tests the lowest and highest values for each health category and for each unit system (Metric and Imperial) (24 tests) OR should create 24 Unit tests
Alternatively one unit system could be tested using Black Box tests and the other using Unit Tests. This must be shared if working as pair programmers
The student should add five limitations or useful extensions that could be added to the application
- After doing research on other BMI calculators, I noticed that some asked for the age of the user, which is something I could incorporate.
- My application takes no account of muscles mass, which I have noticed may other calculators are able to do, this feature is what separates the athletes from others.
- A useful feature that can be added would be the addition of a redo feature. My application ends after the results are given and, the user may want to redo the test, having a feature that will allow them to reuse the calculator would be helpful.
- Other BMI calculators also have features where they ask for age. This could be pivotal to getting the correct results, at this moment in times this BMI calculator is only for adults.
- The most common feature I came across especially on mobile phone applications with a calculator built-in is that they ask for your activity level, meaning how much to exercise. This may be a way of separating muscles mass from the rest of the results.