Brooke C.

asked • 03/29/15

Can somebody help me with the solution to this problem?

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 their 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 their THR. (Test the program with an age of 20 and a resting heart rate of 70, and then determine your training heart rate.

1 Expert Answer

By:

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.