create account

[Tutorial]CREATING A BMI CALCULATOR TO DETERMINE IF A MAN IS OVERWEIGHT OR NOT by kenechukwu2

View this thread on: hive.blogpeakd.comecency.com
· @kenechukwu2 · (edited)
$0.46
[Tutorial]CREATING A BMI CALCULATOR TO DETERMINE IF A MAN IS OVERWEIGHT OR NOT
![images (1).png](https://cdn.steemitimages.com/DQmZ9m57rC2wZE8BnUKi9dApUUpeJVi3iuNxySLsieBVqAm/images%20(1).png)
[IMAGE SOURCE](https://goo.gl/images/HbqzGY)
**RESPOSITORY:** [PYTHON, OPEN SOURCE RESPOSITORY](https://github.com/python)
**WHAT YOU WILL LEARN:** 
- WHAT IS A BMI
- WHAT A BMI CALCULATOR IS
- FORMULA FOR SOLVING BMI 
- CODING A BMI CALCULATOR TO DETERMINE IF A MAN IS OVERWEIGHT



**REQUIREMENTS:** 
- A COMPUTER SYSTEM/ PC/ SMARTPHONE
- PYTHON SOFTWARE


**DIFFICULTY:** BASIC


**CONTENTS**
WHAT IS BMI: BMI simply stands for BODY MASS INDEX.



WHAT A BMI CALCULATOR IS: A BMI calculator is a calculator that is ised to detect if a man is overweight through his/her weight and height.


FORMULA FOR SOLVING BMI:  The formula is kg/m²  where by kg is a persons weight in kilogram and m² is a person height squared.



CODING A BMI CALCULATOR:  Coding a BMI calculator is simply done by the steps below:
IF NOT OVERWEIGHT:
```
name = "Kenechukwu"
height_m = 3
weight_kg = 20




bmi = weight_kg / (height_m ** 2)
print("bmi: ")
print(bmi)
if bmi < 25:
    print(name)
    print("is not overweight")
else:
    print(name)
    print("is overweight")

```
OUTPUT: ![Screenshot_QPython3_20180812-123359.png](https://cdn.steemitimages.com/DQmec5FtxGnVDPudrEMkVxoZYuYtHNcJSJRVTZQdUbxJM5u/Screenshot_QPython3_20180812-123359.png)

This code is assigned to calculate a subject "Kenechukwu" to calculate his bmi and determine if he is overweight or not.
A man is labelled overweight if his BMI is 25 or more. The code below shows our subject is not over weight now ill re-write the code to make our subject overweight and see
 IF OVERWEIGHT:
```
name = "Kenechukwu"
height_m = 1
weight_kg = 500




bmi = weight_kg / (height_m ** 2)
print("bmi: ")
print(bmi)
if bmi < 25:
    print(name)
    print("is not overweight")
else:
    print(name)
    print("is overweight")
```
![Screenshot_QPython3_20180812-124056.png](https://cdn.steemitimages.com/DQmRU9fo38daunp4WKB4Lk1AHm3geRS7jzx45kQRqsbURTL/Screenshot_QPython3_20180812-124056.png)


As you can see the bmi has been determined and clearly our subject is overweight. 
[PROOF OF WORK](https://gist.github.com/kenechukwu-2/810c74d986804a4b06cea318116e05ce)
My other tutorials include:
- [Creating a simple encryption key](https://steemit.com/utopian-io/@kenechukwu2/tutorial-creating-a-simple-encrytion-code-with-python-3-6)
- [Creating a simple guessing game](https://steemit.com/utopian-io/@kenechukwu2/tutorial-creating-a-simple-guessing-game-f60b56fa2019f)
👍  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
properties (23)
authorkenechukwu2
permlinktutorial-creating-a-bmi-calculator-to-determine-if-a-man-is-overweight-or-not
categoryutopian-io
json_metadata{"tags":["utopian-io","tutorials","steem","coding","wafrica"],"image":["https://cdn.steemitimages.com/DQmZ9m57rC2wZE8BnUKi9dApUUpeJVi3iuNxySLsieBVqAm/images%20(1).png","https://cdn.steemitimages.com/DQmec5FtxGnVDPudrEMkVxoZYuYtHNcJSJRVTZQdUbxJM5u/Screenshot_QPython3_20180812-123359.png","https://cdn.steemitimages.com/DQmRU9fo38daunp4WKB4Lk1AHm3geRS7jzx45kQRqsbURTL/Screenshot_QPython3_20180812-124056.png"],"links":["https://goo.gl/images/HbqzGY","https://github.com/python","https://gist.github.com/kenechukwu-2/810c74d986804a4b06cea318116e05ce","https://steemit.com/utopian-io/@kenechukwu2/tutorial-creating-a-simple-encrytion-code-with-python-3-6","https://steemit.com/utopian-io/@kenechukwu2/tutorial-creating-a-simple-guessing-game-f60b56fa2019f"],"app":"steemit/0.1","format":"markdown"}
created2018-08-12 11:49:51
last_update2018-08-12 23:16:24
depth0
children5
last_payout2018-08-19 11:49:51
cashout_time1969-12-31 23:59:59
total_payout_value0.394 HBD
curator_payout_value0.067 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length2,518
author_reputation1,373,218,176,262
root_title"[Tutorial]CREATING A BMI CALCULATOR TO DETERMINE IF A MAN IS OVERWEIGHT OR NOT"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id67,945,199
net_rshares336,072,846,723
author_curate_reward""
vote details (63)
@minnowsupport ·
<p>Congratulations!  This post has been upvoted from the communal account, @minnowsupport, by kenechukwu2 from the Minnow Support Project. It's a witness project run by aggroed, ausbitbank, teamsteem, someguy123, neoxian, followbtcnews, and netuoso. The goal is to help Steemit grow by supporting Minnows.  Please find us at the <a href="https://discord.gg/HYj4yvw"> Peace, Abundance, and Liberty Network (PALnet) Discord Channel</a>.  It's a completely public and open space to all members of the Steemit community who voluntarily choose to be there.</p> <p>If you would like to delegate to the Minnow Support Project you can do so by clicking on the following links: <a href="https://v2.steemconnect.com/sign/delegateVestingShares?delegator=&amp;delegatee=minnowsupport&amp;vesting_shares=102530.639667%20VESTS">50SP</a>, <a href="https://v2.steemconnect.com/sign/delegateVestingShares?delegator=&amp;delegatee=minnowsupport&amp;vesting_shares=205303.639667%20VESTS">100SP</a>, <a href="https://v2.steemconnect.com/sign/delegateVestingShares?delegator=&amp;delegatee=minnowsupport&amp;vesting_shares=514303.639667%20VESTS">250SP</a>, <a href="https://v2.steemconnect.com/sign/delegateVestingShares?delegator=&amp;delegatee=minnowsupport&amp;vesting_shares=1025303.639667%20VESTS">500SP</a>, <a href="https://v2.steemconnect.com/sign/delegateVestingShares?delegator=&amp;delegatee=minnowsupport&amp;vesting_shares=2053030.639667%20VESTS">1000SP</a>, <a href="https://v2.steemconnect.com/sign/delegateVestingShares?delegator=&amp;delegatee=minnowsupport&amp;vesting_shares=10253030.639667%20VESTS">5000SP</a>. <br><strong>Be sure to leave at least 50SP undelegated on your account.</strong></p>
properties (22)
authorminnowsupport
permlinkre-tutorial-creating-a-bmi-calculator-to-determine-if-a-man-is-overweight-or-not-20180812t122542z
categoryutopian-io
json_metadata"{"app": "beem/0.19.50"}"
created2018-08-12 12:25:42
last_update2018-08-12 12:25:42
depth1
children0
last_payout2018-08-19 12:25:42
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length1,694
author_reputation148,902,805,319,183
root_title"[Tutorial]CREATING A BMI CALCULATOR TO DETERMINE IF A MAN IS OVERWEIGHT OR NOT"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id67,948,142
net_rshares0
@steemitboard ·
Congratulations @kenechukwu2! You have completed the following achievement on Steemit and have been rewarded with new badge(s) :

[![](https://steemitimages.com/70x80/http://steemitboard.com/notifications/votes.png)](http://steemitboard.com/@kenechukwu2) Award for the number of upvotes

<sub>_Click on the badge to view your Board of Honor._</sub>
<sub>_If you no longer want to receive notifications, reply to this comment with the word_ `STOP`</sub>



**Do not miss the last post from @steemitboard:**
[SteemitBoard and the Veterans on Steemit - The First Community Badge.](https://steemit.com/veterans/@steemitboard/steemitboard-and-the-veterans-on-steemit-the-first-community-badge)

> Do you like [SteemitBoard's project](https://steemit.com/@steemitboard)? Then **[Vote for its witness](https://v2.steemconnect.com/sign/account-witness-vote?witness=steemitboard&approve=1)** and **get one more award**!
properties (22)
authorsteemitboard
permlinksteemitboard-notify-kenechukwu2-20180822t222938000z
categoryutopian-io
json_metadata{"image":["https://steemitboard.com/img/notify.png"]}
created2018-08-22 22:29:36
last_update2018-08-22 22:29:36
depth1
children0
last_payout2018-08-29 22:29:36
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length910
author_reputation38,975,615,169,260
root_title"[Tutorial]CREATING A BMI CALCULATOR TO DETERMINE IF A MAN IS OVERWEIGHT OR NOT"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id69,059,565
net_rshares0
@yokunjon · (edited)
$8.44
I thank you for your contribution. Here are my thoughts;

* Tutorials should teach the user something unique, shouldn't show ubiquitous content-creation and replicate concepts which can be found over the internet with great ease. What you've shown in your tutorial can be described as "Mathematical Operations and Conditionals in Python with BMI Calculator Example", which meets my statement at above.

* Your tutorial is very messy. The main reason behind that is formatting.  I highly suggest you to use code blocks to show code, instead of plain text. That helps readability. If you don't know how to use code blocks, you can use the [Markdown Styling Guide](https://guides.github.com/features/mastering-markdown/).

* The volume of your tutorial is too sparse. It is preferable to have substantial concepts up to 4-5.

----

Your contribution has been evaluated according to [Utopian policies and guidelines](https://join.utopian.io/guidelines), as well as a predefined set of questions pertaining to the category.

---- 
Need help? Write a ticket on https://support.utopian.io/. 
Chat with us on [Discord](https://discord.gg/uTyJkNm). 
[[utopian-moderator]](https://join.utopian.io/)
👍  , , , ,
properties (23)
authoryokunjon
permlinkre-kenechukwu2-tutorial-creating-a-bmi-calculator-to-determine-if-a-man-is-overweight-or-not-20180812t210441475z
categoryutopian-io
json_metadata{"tags":["utopian-io"],"links":["https://guides.github.com/features/mastering-markdown/","https://join.utopian.io/guidelines","https://support.utopian.io/","https://discord.gg/uTyJkNm","https://join.utopian.io/"],"app":"steemit/0.1"}
created2018-08-12 21:04:42
last_update2018-08-12 21:07:51
depth1
children2
last_payout2018-08-19 21:04:42
cashout_time1969-12-31 23:59:59
total_payout_value6.333 HBD
curator_payout_value2.108 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length1,188
author_reputation19,266,807,595,513
root_title"[Tutorial]CREATING A BMI CALCULATOR TO DETERMINE IF A MAN IS OVERWEIGHT OR NOT"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id67,989,157
net_rshares6,105,692,933,557
author_curate_reward""
vote details (5)
@kenechukwu2 ·
Thanks for the corrections ill take note of it on my next post
👍  
properties (23)
authorkenechukwu2
permlinkre-yokunjon-re-kenechukwu2-tutorial-creating-a-bmi-calculator-to-determine-if-a-man-is-overweight-or-not-20180812t232252669z
categoryutopian-io
json_metadata{"tags":["utopian-io"],"app":"steemit/0.1"}
created2018-08-12 23:23:00
last_update2018-08-12 23:23:00
depth2
children0
last_payout2018-08-19 23:23:00
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length62
author_reputation1,373,218,176,262
root_title"[Tutorial]CREATING A BMI CALCULATOR TO DETERMINE IF A MAN IS OVERWEIGHT OR NOT"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id67,998,349
net_rshares4,442,363,782
author_curate_reward""
vote details (1)
@utopian-io ·
Thank you for your review, @yokunjon!

So far this week you've reviewed 1 contributions. Keep up the good work!
properties (22)
authorutopian-io
permlinkre-re-kenechukwu2-tutorial-creating-a-bmi-calculator-to-determine-if-a-man-is-overweight-or-not-20180812t210441475z-20180814t133748z
categoryutopian-io
json_metadata"{"app": "beem/0.19.42"}"
created2018-08-14 13:37:48
last_update2018-08-14 13:37:48
depth2
children0
last_payout2018-08-21 13:37:48
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length111
author_reputation152,955,367,999,756
root_title"[Tutorial]CREATING A BMI CALCULATOR TO DETERMINE IF A MAN IS OVERWEIGHT OR NOT"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id68,166,196
net_rshares0