Question

In: Computer Science

In order for exercise to be beneficial to the cardiovascular system, the heart rate (number of...

In order for exercise to be beneficial to the cardiovascular system, the heart rate (number of heartbeats 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 function called CalculateTHR that receives 2 parameters which represent a person's age and resting heart rate and it does not return anything back.

The function calculates and shows the THR value.

Calling the function.

Inside the main function, ask the user to input two values: Age and the resting heart rate.

Call the function CalculateTHR and pass to it as arguments the two values of the user.

Solutions

Expert Solution

***Please like , if you like my answer***


Related Solutions

3. Considering the cardiovascular system. a) Write the formula relating cardiac output, heart rate, and stroke...
3. Considering the cardiovascular system. a) Write the formula relating cardiac output, heart rate, and stroke volume. And indicate the normal values of cardiac output, stroke volume and heart rate of a resting adult. b) A man was hurt in a car accident with heavy bleeding. I. State the change in blood volume with heavy bleeding. II. Predict and briefly explain the possible change in cardiac output and blood pressure of that man. III. The man has a very high...
A. CARDIOVASCULAR SYSTEM- is an organ system composing of the heart and blood vessels as its...
A. CARDIOVASCULAR SYSTEM- is an organ system composing of the heart and blood vessels as its major organs in which its major function is transportation, using blood as the transport vehicle that carries nutrients, cell wastes, hormones and many other substances vital for body hemeostasis. As cardiovascular do these functions the lymphatic system helps in picking up leaked fluid and plasma proteins and returns them to the circulation on which its immune system cells protect cadiovascular organs from invading pathogens,...
II. Cardiovascular System Health Assessment: Heart and Neck Vessels a. Anatomical landmarks for assessing the heart...
II. Cardiovascular System Health Assessment: Heart and Neck Vessels a. Anatomical landmarks for assessing the heart and neck vessels b. Physical assessment techniques for assessing the heart and neck vessels c. Normal and Abnormal Findings: Inspection, Palpation, Percussion, Auscultation d. Heart Sounds and Murmurs: Normal and Abnormal findings and clinical significance e. (application)Jugular Venous Pressure: Normal and Abnormal findings and clinical significance / CHF f. Assessing Murmurs g. Peripheral vascular pulses
In detail explain the response of the cardiovascular system to exercise. (expecting an advance level answer)...
In detail explain the response of the cardiovascular system to exercise. (expecting an advance level answer) thanks in advance.
discuss the idea about cardiovascular system and respiratory system disorders, and the association of cardiovascular system...
discuss the idea about cardiovascular system and respiratory system disorders, and the association of cardiovascular system and respiratory system with each other.
GERONTOLOGY NURSING: CARDIOVASCULAR SYSTEM Major sign and symptoms of congestive heart failure -Shortness of Breath -Edema...
GERONTOLOGY NURSING: CARDIOVASCULAR SYSTEM Major sign and symptoms of congestive heart failure -Shortness of Breath -Edema -Coughing or wheezing -Fatigue -Lack of appetite or nausea -Confusion -Increased heart rate 1. Give nursing interventions for each sign and symptoms of congestive heart failure.
how is the cardiac cycle initiated ? how is the heart rate or the number of...
how is the cardiac cycle initiated ? how is the heart rate or the number of cardiac cyles per minute modulated?
1. respiratory system 2. cardiovascular system
1. respiratory system2. cardiovascular system3. nervous system4. endocrine system5. urinary System
A physician wants to test if temperature has an effect on heart rate. In order to...
A physician wants to test if temperature has an effect on heart rate. In order to do this, she compares the heart rates in beats per minute of several random volunteers after a period of time in a room with a temperature of 50∘F and after a period of time in a room with a temperature of 75∘F. Suppose that data were collected for a random sample of 11volunteers, where each difference is calculated by subtracting the heart rate in...
Exercise and the Brain It is well established that exercise is beneficial for our bodies. Recent...
Exercise and the Brain It is well established that exercise is beneficial for our bodies. Recent studies appear to indicate that exercise can also do wonders for our brains, or, at least, the brains of mice. In a randomized experiment, one group of mice was given access to a running wheel while a second group of mice was kept sedentary. According to an article describing the study, "The brains of mice and rats that were allowed to run on wheels...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT