From da9360863dfc6c0b5c9ef4d228d76269ed68925f Mon Sep 17 00:00:00 2001 From: Rolivhuwa-Shally02 <80606439+Rolivhuwa-Shally02@users.noreply.github.com> Date: Mon, 3 May 2021 11:05:17 +0200 Subject: [PATCH 1/3] updated README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index a9a05f4..302d9b7 100755 --- a/README.md +++ b/README.md @@ -1,4 +1,5 @@ # Description for Lab Test +# Mandaha Rolivhuwa (Rolivhuwa-Shally02) This code takes as input a data file with the weight and height of individuals and computes the body mass index (BMI). The BMI of a person is the weight of a person in kilograms divided by the square of the height in metres. The program should then categorise the BMI according to these rules * Less than 19: A From 6e51ab48b67f58b7128f38533b96495b36671d70 Mon Sep 17 00:00:00 2001 From: Rolivhuwa-Shally02 <80606439+Rolivhuwa-Shally02@users.noreply.github.com> Date: Mon, 3 May 2021 11:06:09 +0200 Subject: [PATCH 2/3] Updated README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 302d9b7..4d0c75b 100755 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ # Description for Lab Test -# Mandaha Rolivhuwa (Rolivhuwa-Shally02) +# Mandaha Rolivhuwa This code takes as input a data file with the weight and height of individuals and computes the body mass index (BMI). The BMI of a person is the weight of a person in kilograms divided by the square of the height in metres. The program should then categorise the BMI according to these rules * Less than 19: A From 25d5bd16159386f7784de3f78154ba48c550a42d Mon Sep 17 00:00:00 2001 From: Micky Duck Date: Mon, 3 May 2021 11:19:52 +0200 Subject: [PATCH 3/3] Update SH --- README.md | 1 + bmi.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 4d0c75b..1f41514 100755 --- a/README.md +++ b/README.md @@ -1,5 +1,6 @@ # Description for Lab Test # Mandaha Rolivhuwa +Originally: Scott Hazelhurst This code takes as input a data file with the weight and height of individuals and computes the body mass index (BMI). The BMI of a person is the weight of a person in kilograms divided by the square of the height in metres. The program should then categorise the BMI according to these rules * Less than 19: A diff --git a/bmi.py b/bmi.py index 5a7890e..0944c97 100755 --- a/bmi.py +++ b/bmi.py @@ -4,7 +4,7 @@ def ounces2pounds(x): return x*16 def stones2pounds(x): - return x*14 + return x*140 def weight2kg(stones,pounds,ounces):