The following are formulas for calculating the training heart rate (THR) for men and women: For men

Question:

The following are formulas for calculating the training heart rate (THR) for men and women:
For men (Karvonen formula): THR = [ (220-AGE)-RHR] x INTEN + RHR
For women: THR = [(206-0.88xAGE)-RHR] × INTEN + RHR
where AGE is the person's age, RHR 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. Use the program for determining the training heart rate for the following two individuals:
(a) A 21-year -old male, resting heart rate of 62, and low fitness level.
(b) A 19-year-old female, resting heart rate of 67, and high fitness level.
Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: