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, 21.06.2019 23:50
How does a bone marrow transplant treat sickle cell disease?
Answers: 3
question
Health, 22.06.2019 04:00
What organs or body system is affected by ebola
Answers: 2
question
Health, 22.06.2019 09:30
Which of the follow is good way to gauge musculature endurance?
Answers: 1
question
Health, 22.06.2019 15:00
Choose a topic from the reconstruction era listed below. research your topic. write a 300 word report on your findings! (one topic) 1 the conditions in the south during reconstruction 2 lincoln’s assassination 3 the freedmen’s bureau 4 the impeachment of president johnson
Answers: 2
You know the right answer?
According to the American Heart Association, as you exercise you should periodically check your hear...
Questions