Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribedimage text in transcribedimage text in transcribed

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

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_2

Step: 3

blur-text-image_3

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

Data Access Patterns Database Interactions In Object Oriented Applications

Authors: Clifton Nock

1st Edition

0321555627, 978-0321555625

More Books

Students also viewed these Databases questions

Question

How does integrity make healthcare managers more effective?

Answered: 1 week ago