Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Lab 3 LetGetFit Software Development Purpose: Body Mass Index ( BMI ) is a measure of health based on height and weight. It can be

Lab 3 LetGetFit Software Development
Purpose:
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:
Note: one pound is 0.45359237 kilograms, and one inch is 0.0254 meters.
Suppose LetGetFit 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. LetGetFit 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 LetGetFits 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. You may use the datetime library to access the current year. Refer to the example below.
You will also need an instance method to calculate the BMI for the member.
After completing the Member class, you need to create a Test class to test your code. In the test class, you need to create the profiles of two members. You need to set the two profiles with proper test values (i.e., name, age, weight, height). After that, display the two members' information on your monitor. You want to form your string out as:
The BMI for [name](age) is [BMI value][BMI Interpretation]
Your output might look something like the one below (possibly with different names, ages, BMIs,
and BMI interpretations)
Submission:
Submit your Python scripts (i.e., the .py file) in Blackboard. Criteria:
Comments describing the program:
Properly defining the constructor for Member:
Properly defining the methods for the age and weight:
Properly defining the method to calculate the BMI:
Properly implementing the test cases:
Due by Next Wednesday at Midnight
5 points 20 points 20 points 25 points 30 points

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Essential SQLAlchemy Mapping Python To Databases

Authors: Myers, Jason Myers

2nd Edition

1491916567, 9781491916568

Students also viewed these Databases questions

Question

Different formulas for mathematical core areas.

Answered: 1 week ago