/dynamic-imc

Body Mass Index (BMI) application with JSP to a Web Programming class assignment

Primary LanguageShell

IMC Calculator

Practice PW Homework Maven

Simple application to calculate Body Mass Index (IMC) developed as a Web Programming class assignment.


Demo

The following technologies was used:

  • HTML
  • CSS
  • JSP
  • Maven

Accessing the Web App

To run the application first, clone the repository:

git clone https://github.com/akwaryo/dynamic-imc

Then you can run with Tomcat, just type in the terminal, inside the project folder:

mvnw org.apache.tomcat.maven:tomcat7-maven-plugin:run

Open any browser and type:

http://localhost:9090/dynamic-imc/

And Done! Now you can access the project.

About the IMC

Body mass index (IMC) is a measure of body fat based on height and weight that applies to adult men and women. The index is calculated by the formula:

imc = weight / (height * height)

The condition used to classify the index was accordingly to NHANES II (National Health and Nutrition Examination Survey). The following criteria was used:

Condition Men Index Women Index
below weight <20.7 <19.1
normal weight 20.7 - 26.4 19.1 - 25.8
slight overweight 26.5 - 27.8 25.9 - 27.3
overweight 27.9 - 31.1 27.4 - 32.3
obesity >31.2 > 32.4