Question: solve it using the c program Problem 1: The following are formulas for calculating the training heart rate (THR): THR=(MHRRHR)INTEN+RHR where MHR is the maximum
Problem 1: The following are formulas for calculating the training heart rate (THR): THR=(MHRRHR)INTEN+RHR where MHR is the maximum heart rate. For males: MHR=1+e0.033(agc104.3)203.7 For females: MHR=1+e0.0453(age107.5)190.2 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 that determines the THR. The program asks users to enter their gender (male ' M ' or female ' F '), age (number), resting heart rate (number), and fitness level (low ' L ', medium ' M ', or high ' H '). 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 three 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. (c) A 63-year old male, resting heart rate of 82 , and low fitness level
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
