PHP Classes

BMI Calculator: Compute the body mass index from height and weight

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 53%Total: 2,090 All time: 1,874 This week: 41Up
Version License Categories
bmi_calculator 1.0.0BSD LicenseAlgorithms, Biology
Description 

Author

This is a simple class that can compute the body mass index of a person given his/her height and weight.

The class displays a table that shows the body mass index for the given height and weight and tells it corresponds to a person with low weight, normal weight or over the normal weight.

The calculations assume that the height is in meters and weight is in Kilograms. The messages appear both in English and in German.

Innovation Award
PHP Programming Innovation award nominee
December 2005
Number 7
Body mass index is value can be calculated to determine if the weight of an adult is normal for a person of his height.

This class can calculate the body mass index of a person and tell whether he is OK or or is above or below the normal weight.

Manuel Lemos
Picture of Daniel Thul
Name: Daniel Thul <contact>
Classes: 3 packages by
Country: Germany Germany
Age: 34
All time rank: 59439 in Germany Germany
Week rank: 50 Up4 in Germany Germany Up
Innovation award
Innovation award
Nominee: 1x

  Files folder image Files (2)  
File Role Description
Plain text file class.bmi.php Class The class itself
Accessible without login Plain text file example.php Example The example script

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:2,090
This week:0
All time:1,874
This week:41Up
User Ratings User Comments (2)
 All time
Utility:75%StarStarStarStar
Consistency:75%StarStarStarStar
Documentation:-
Examples:83%StarStarStarStarStar
Tests:-
Videos:-
Overall:53%StarStarStar
Rank:2206
 
Excellent
15 years ago (kishore kumar)
70%StarStarStarStar
no comment rigth now
15 years ago (luigi musina)
52%StarStarStar