REPORT
Calculation of Body Mass Index (BMI) using Python
1. Introduction
The Body Mass Index (BMI) is a commonly used measure
to assess a person's weight in relation to their height. It is a tool
important in determining an individual's health and fitness. This
The report describes the creation of a simple program in Python to calculate the
IMC and its use in the Google Cloud Shell Editor environment.
2. Methods
The developed Python program is a tool that allows
calculate the BMI based on the weight and height provided by the user. The code
is presented below:
Enter your weight in kilograms:
height = float(input("Enter your height in meters: "))
bmi = weight / (height ** 2)
Your BMI is:
if bmi < 18.5:
You are under normal weight.
elif 18.5 <= bmi < 24.9:
Your weight is normal.
elif 25 <= bmi < 29.9:
You are overweight.
else:
You are in the obesity category.
The program starts by asking the user to enter their weight and
height. Then, he calculates the BMI and classifies it into categories based on the
typical values of BMI.
3. Results
After the program execution, the results are displayed on the console.
The user's BMI is calculated and classified into one of four categories:
underweight, healthy weight, overweight or obesity, based on the criteria
pattern (Invalid URL or content not accessible.
The index is calculated from...
0e 2024,9.).
4. Description of the Use of Google Cloud Shell Editor
Google Cloud Shell Editor is a cloud-based tool
that allows developers to create, edit, and run code directly on
browser. It offers an interactive development environment with access
to a variety of resources and programming languages, including Python,
in a manner similar to Visual Studio Code. The tool facilitates the
development and execution of code in a convenient way, without the
need for complex configurations.
5. Use of Python Language with the Tool
The choice of Python language for this project is due to its
simplicity and ease of use. Python is widely used in analysis of
data and web application development, which makes it a choice
suitable for calculating BMI in the Google Cloud Shell Editor. The integration of
Python language with the tool makes code development and testing
practical and efficient.
6. Conclusion
This project demonstrates the creation of a simple program in Python
to calculate BMI and its execution in the Google Cloud Shell Editor environment.
BMI is a useful metric for assessing an individual's health and fitness.
The developed program is a practical tool that allows users
calculate your BMI and obtain a classification based on widely used criteria
acceptances.