Question

The American College of Sports Medicine recommends that you maintain a training heart rate (THR) during...

The American College of Sports Medicine recommends that you maintain a training heart rate (THR) during an aerobic workout. Your training heart rate (THR) is computed as:

THR = (220 – your age) times 0.7 plus resting heart rate (RHR) times 0.3

Write a Python program that computes and prints to the screen the THR for the following test cases:

AGE Resting Heart Rate (RHR)

25 58

35 64

45 67

Identify all the variables and constants.
Import data for the variables
Perform the calculations
Print out the results

You may write a loop that allows your program to perform calculations for multiple inputs or you may run the program three times, once for each test case.

Homework Answers

Answer #1

n=int(input('Enter number of cases: '))
for i in range(n):
print('Case {}:'.format(i+1))
age = int(input('Enter age: '))
rhr = int(input('Enter Resting Heart Rate (RHR): '))
thr= (220-age)*.7+rhr*.3
print('Calculated Trainging Heart Rate(THR):',thr)
print()

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Case Study 2 Calculations: Calculate the client's target heart rate using the Karvonen formula. Training Program:...
Case Study 2 Calculations: Calculate the client's target heart rate using the Karvonen formula. Training Program: Design a full 12-week periodized training program for the client described in the Client Profile. Be very specific as you design the training program. This is an opportunity for you to demonstrate your full comprehension of the information and concepts discussed throughout the course. List the types of exercise, duration, sets, reps, rest intervals, and so on. Include the following in your case study...
Case Study 1 Calculations: Calculate the client's target heart rate using the Karvonen formula. Training Program:...
Case Study 1 Calculations: Calculate the client's target heart rate using the Karvonen formula. Training Program: Design a full 12-week periodized training program for the client described in the Client Profile. Be very specific as you design the training program. This is an opportunity for you to demonstrate your full comprehension of the information and concepts discussed throughout the course. List the types of exercise, duration, sets, reps, rest intervals, and so on. Include the following in your case study...
In this assignment, you will test for a significant difference between the average resting heart rate...
In this assignment, you will test for a significant difference between the average resting heart rate of males and the average resting heart rate of females in your heart rate data. You have observed that the mean rates are not exactly the same but are they significantly different? You may use either of the two methods for testing a hypothesis illustrated in Realizeit: compare the two confidence intervals or use the data analysis tool to run a two-sample test with...
52. BMR stands for basic memory retention basal metabolic rate bregmatic myofascial release none of these...
52. BMR stands for basic memory retention basal metabolic rate bregmatic myofascial release none of these 53. The primary (not initial) fuel during endurance exercise is liver glycogen muscle glycogen fatty acids none of these 54. The human body consists of chemicals cells tissues none of these all of these 55. The main purpose of the digestive system is the breakdown of foods and waste elimination to supply oxygen and eliminate carbon dioxide reproduction and maintenance of sexual characteristics none...