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, 23.06.2019 00:00
Which of the following is not a fitness benefit of cycling a: very effective at burning fat b: provides an upper body workout c: provides an aerobic workout d: good exercise for out of shape people
Answers: 1
question
Health, 23.06.2019 01:30
Which method will provide the most emotional support in a new exercise program
Answers: 2
question
Health, 23.06.2019 04:00
Which of the following is characteristic of the lytic cycle? a) viral dna is incorporated into the host genome.b) the viral genome replicates without destroying the host.c) a large number of phages are released at a time.d) the virus—host relationship usually lasts for generations.
Answers: 2
question
Health, 23.06.2019 05:30
Which food preservation method can people use at home? a. fermentation b. irradiation c. pasteurization d. thermal processing
Answers: 1
You know the right answer?
According to the American Heart Association, as you exercise you should periodically check your hear...
Questions
question
World Languages, 02.03.2021 06:10
question
Mathematics, 02.03.2021 06:10
question
Social Studies, 02.03.2021 06:10
question
History, 02.03.2021 06:10
question
Mathematics, 02.03.2021 06:10
question
Mathematics, 02.03.2021 06:10
question
Mathematics, 02.03.2021 06:10
Questions on the website: 13722367