Question: Q2. Write a health record program. You program should read the following values from the user: Name Date of birth in dd/mm/yyyy format Height (in

 Q2. Write a health record program. You program should read the

Q2. Write a health record program. You program should read the following values from the user: Name Date of birth in dd/mm/yyyy format Height (in meter Weight in kg) Your code should have the following functions: computeAge: calculate and return the user's age in years. To compute the age, use the date python module to find the current year (date.year from the datetime python module) computeMHR: calculate and return the maximum heart rate. According to the American Heart Association (AHA) (www.americanheart.org/presenter.jhtml?identifier 4736), the formula for calculating your maximum heart rate in beats per minute is 220 minus your age in years computeBMI: calculate and return the user's body mass index (BMI). The formula for calculating BMI is BMI Chris After reading the values from the users, Calculate and print the user's maximum heart rate Calculate and print the user's BMI Print the BMI category according to the following rule: BMI VALUES Underweightless than 18.5 Normal: between 18.5 and 24.9 Overweight: between 25 and 29.9 Obeset 30 or greater The program can read as many inputs as the user wishes. You program should terminate if the user entered for any of the inputs Sample output freen color contratos Enter your water Enter your date of birth Enter your height in meters 1.6 Enter your weight in 1956 Manar's age is 19 Your heart rate is 21 Your he is 26.2-> Overweight Enter your first name Enter your date of birth: Thank you! Bye

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!