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 03:00
Megan is a three-year-old girl. every day, her nanny tells her a story. when her parents get home from work, megan tries to tell them the story. however, she can only retell a few parts of each story. she speaks in short sentences and often plays imaginary games. which type of developmental change is megan experiencing? a. social b. emotional c. physical d. cognitive
Answers: 2
question
Health, 22.06.2019 06:00
When studying heredity, what is the relationship of dna based and traits? super urgent !
Answers: 1
question
Health, 22.06.2019 06:00
If you are caught in a flash flood, or sea water rushing your way, drive to the ground you can find. highest lowest nearest darkest
Answers: 2
question
Health, 22.06.2019 14:20
Victoria enjoys laughing with her friends as they walk around the track after school which best describes her heart rate during this activity
Answers: 2
You know the right answer?
According to the American Heart Association, as you exercise you should periodically check your hear...
Questions
question
Mathematics, 20.10.2021 20:10
question
Mathematics, 20.10.2021 20:10
Questions on the website: 13722361