Question: (Python) In order for exercise to be beneficial to the cardiovascular system, the heart rate must exceed a value called the training heart rate, THR.

(Python) In order for exercise to be beneficial to the cardiovascular system, the heart rate must exceed a value called the training heart rate, THR. A persons THR can be approximated from their resting heart rate and age as follows:

o a) Calculate the maximum heart rate as 220 minus the age

o b) Subtract the resting heart rate from the maximum heart rate

o c) Multiply the difference in step b) by 60% and then add in the resting heart rate

o Write a function called THR that takes 2 parameters, resting heart rate and age, and call that function in your program.

o The program should have the following output. Also try 60 and 35 you should get a THR of 135.0

Output: https://ibb.co/ikjGOL

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!