Question: Use PYTHON. Put these in functions. From the year of birth, calculate the user age. Asking the user to enter their date of birth and



Use PYTHON. Put these in functions.
From the year of birth, calculate the user age. Asking the user to enter their date of birth and calculating the exact age in years is a bonus. Using the height and weight information, calculate the user's BMI using the following equation: Weight (in KG) BMI Height? (in meters) Based on the calculated BMI value, find out the user's BMI range by using the following table: BMI value 30.0 Range Underweight Normal Overweight Obese The gender should be a string that corresponds to either female or male only. Using the user height, weight, and gender, you can calculate the Basal Metabolic Rate (BMR) using the following equation: o For females: BMR = 655.1 + (9.563 x weight)+(1.85 x height x 100) - (4.676 x age). o For males: BMR = 66.47 + (13.75 x weight) + (5.003 x height x 100) - (6.755 x age). The user should choose the number that corresponds to their activity level based on the following table: Number Activity level Value 1 Little/No exercise 2 Light exercise 1.375 3 Moderate exercise (3-5 days/week) 1.55 4 Very active (6-7 days/week) 1.725 5 Extra active (very active & physical job) 1.9 1.2 Based on the user's chosen activity level, you can use the activity level value to calculate the Total Energy Expenditure (TEE) with the following equation: TEE = BMR x activity level value
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
