/imc-mvc

IMC application using servlet and MVC pattern

Primary LanguageShell

IMC Calculator

Practice PW Homework Maven

Simple application to calculate Body Mass Index (IMC) using MVC pattern 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/imc-mvc

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/imc-mvc/

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