Question
Training Heart Rate in order for exercise to be beneficial to the cardiovascular system, the heart rate (number of heart heats per minute) must exceed
Training Heart Rate in order for exercise to be beneficial to the cardiovascular system, the heart rate (number of heart heats 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 rare (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 rare as input and display his or her THR. See Fig. 5.6..
You should also create a user-defined function to calculate and return the THR using the calculations described in steps a-c. The THR should then be displayed in the event procedure
This is in Visual Basic programming.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started