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

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.

Step by Step Solution

3.44 Rating (167 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Script file clear clc for k12 genderinputPlease input your gender male or female s ageinpu... View full answer

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

Document Format (1 attachment)

Word file Icon

652-B-F-F-M (709).docx

120 KBs Word File

Students Have Also Explored These Related Finance Questions!