Answered step by step
Verified Expert Solution
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 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 years or older is as follows:
Note: one pound is kilograms, and one inch is meters.
Suppose LetGetFit is a memberbased 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 and LetGetFit has kept members' information on a paperbased file system. Recently, they decided to digitalize all the members' information and move to a computerbased system eventually. Below are LetGetFits requirement for the system ie 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. Eg if member A was years old in then As age should be automatically updated to in
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 yearofbirth for each member. In such a way, when you need to get the age, you may simply use currentyear yearofbirth. 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 ie 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 nameage is BMI valueBMI Interpretation
Your output might look something like the one below possibly with different names, ages, BMIs,
and BMI interpretations
Submission:
Submit your Python scripts ie 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
points points points points points
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started