Problem

In Exercises 13 through 26, construct functions to carry out the primary task(s) of the...

In Exercises 13 through 26, construct functions to carry out the primary task(s) of the program.

Training Heart Rate In order for exercise to be beneficial to the cardiovascular system, the heart rate (number of heart beats per minute) must exceed a value called the training heart rate, THR. A person’s THR can be calculated from his or her age and resting heart rate (pulse rate when first awakening) as follows:

(a) Calculate the maximum heart rate as 220 - age.

(b) Subtract the resting heart rate from the maximum heart rate.

(c) Multiply the result in step (b) by 60 %, and then add the resting heart rate.

Write a program to request a person’s age and resting heart rate as input and display his or her THR. See Fig. 5.6.

Step-by-Step Solution

Request Professional Solution

Request Solution!

We need at least 10 more requests to produce the solution.

0 / 10 have requested this problem solution

The more requests, the faster the answer.

Request! (Login Required)


All students who have requested the solution will be notified once they are available.
Add your Solution
Textbook Solutions and Answers Search
Solutions For Problems in Chapter 5.1