Question: Python Program Ultimate Health Tracker Body Mass Index ( BMI ) is a measure of health based on height and weight. It can be calculated

Python Program
Ultimate Health Tracker
Body Mass Index (BMI) is a measure of health based on height and weight. It can be calculated by taking
your weight in kilograms and dividing it by the square of your height in meters. The interpretation of BMI
for people 20 years or older is as follows:
Suppose Ultimate Health Tracker is a member-based fitness center that provides customized wellness plans to help
members maintain the proper weight level. They use BMI as the main measurement to decide whether a
customer needs to gain or lose weight. Their goal is to help customers maintain a BMI level between 18.5
and 25. Ultimate Health Tracker has kept members' information on a paper-based file system. Recently, they decided to
digitalize all the members' information and move to a computer-based system eventually.
Below are requirement for the system (i.e., software):
Within the system, each member will have a digital profile containing the member's name, age,
weight (in pounds), and height (in inches).
The administrator may need to update member's weight over time.
To minimize the maintained workload, the ages should be automatically updated as the year
advances. E.g., if member A was 20 years old in 2020, then A's age should be automatically
updated to 21 in 2021.
Task:
Design the prototype of this system mentioned above using Python. Each member profile can be an
instance of a Member class.
You will need an instance method to update the members weight and an instance method to access the
members age.
To update ages automatically, you might NOT want to keep the age for each member. Instead, you might
keep the year_of_birth for each member. In such a way, when you need to get the age, you may simply
use current_year - year_of_birth.
Create inputs for the following so the fitness center employees can enter each members:
name, weight, height and age
Create an output showing:
Members BMI
name, weight, height and age
BMI Scale to implement
<18.5 is Underweight
18.5<= User BMI <25.0 is Normal
25.0<= User BMI <30.0 is Overweight
30.0<= User BMI is Obese
Note: one pound is 0.45359237 kilograms, and one inch is 0.0254 meters

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!