27. The following are formulas for calculating the training heart rate (THR): where MHR is the maximum
Question:
27. The following are formulas for calculating the training heart rate (THR):
where MHR is the maximum heart rate given by (https://en.wikipedia.org/
wiki/Heart_rate):
For males: , for females: , RHR is the resting heart rate, and INTEN the fitness level (0.55 for low, 0.65 for medium, and 0.8 for high fitness). Write a program in a script file that determines the THR. The program asks users to enter their gender (male or female), age (number), resting heart rate (number), and fitness level (low, medium, or high). The program then displays the training heart rate
(rounded to the nearest integer). Use the program for determining the training heart rate for the following two individuals:
(a) A 19-year-old male, resting heart rate of 64, and medium fitness level.
(b) A 20-year-old female, resting heart rate of 63, and high fitness level.
Step by Step Answer: