Write a program to request a persons age and resting heart


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 age and resting heart rate (pulse

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.)

Solution Preview :

Prepared by a verified Expert
Visual Basic Programming: Write a program to request a persons age and resting heart
Reference No:- TGS01244176

Now Priced at $20 (50% Discount)

Recommended (94%)

Rated (4.6/5)