Create a program to request a person age


Discuss the below:

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.

Q: Create 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: Create a program to request a person age
Reference No:- TGS01938691

Now Priced at $20 (50% Discount)

Recommended (99%)

Rated (4.3/5)