subject
Health, 24.11.2021 01:00 LMixer5sosCR7Fan

According to the American Heart Association, as you exercise you should periodically check your heart rate to ensure you are in your target zone. Your target zone is a range that is 50% to 85% of your maximum heart rate. The formula for calculating a persons maximum heart rate is 220 minus your age in years. Write a program that reads the users current heart rate, birthday, and the current day (each consisting of month, day, and year). The program should calculate the persons age (in years), the person's maximum heart rate, and the person's target heart rate zone range. Output the users age, current heart rate, target zone range. If their heart rate is in the target zone congratulate them, if it is out of their target zone warn them. Required Functions (Write these first and use them in your algorithm): (your code, particularly for computeAge, must be 100% clear and documented - it's the core of this assignment!) int computeAge(int birthMonth, int birthDay, int birthYear, int currentMonth, int currentDay, int currentYear); int computeMaximumHeartRate(int age); int computeZoneMinimum(double maximumHeartRate); int computeZoneMaximum(double maximumHeartRate).

ansver
Answers: 2

Another question on Health

question
Health, 22.06.2019 13:30
Explain the purpose and function of the icd-10-pcs coding system, include reasons for the transition from icd-9 vol. 3.
Answers: 2
question
Health, 22.06.2019 23:30
Which of the following organizations is a part of the scouting movement? a. junior achievement b. girl guides c. boys and girls club d. 4-h
Answers: 1
question
Health, 23.06.2019 03:00
During the sixteenth, seventeenth, and eighteenth centuries, the mentally ill were housed in
Answers: 1
question
Health, 23.06.2019 05:00
A46-year-old man with a history of hypertension and hypercholesterolemia visits the physician for a routine followup. the patient's job involves a lot of travelling, and he admits to occasionally forgetting to take his medications with him when he travels. he complains of several episodes of chest pain in the past few months. the pain is sharp in nature, mainly over his lower chest and epigastrium, and tends to come on when walking. he believes these episodes are due to indigestion and has been taking antacids. there is a family history of heart disease, and his father died of a heart attack at age 48. on physical examination, his blood pressure is 150/80 mmhg and heart rate is 86/min. his lungs are clear to auscultation. cardiac auscultation reveals normal rate and rhythm, without rubs, gallops, or murmurs. there is no pedal oedema. he is sent for an exercise stress test. five minutes into the test, he develops st depression of 3mm in leads v1-v5. the st segment depression is greater than 0.12 seconds in duration and the stress test is stopped. which of the following is the most appropriate next step in management? - coronary angiography- holter monitor- no further tests are required- repeat stress test with thallium- upper gastrointestinal endoscopy
Answers: 1
You know the right answer?
According to the American Heart Association, as you exercise you should periodically check your hear...
Questions
question
Mathematics, 27.05.2021 01:00
question
Mathematics, 27.05.2021 01:00
question
Mathematics, 27.05.2021 01:00
question
Chemistry, 27.05.2021 01:00
question
Mathematics, 27.05.2021 01:00
Questions on the website: 13722361