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).
Solved
Show answers
More tips
- A Auto and Moto Mastering One-Movement Parking: All You Need to Know...
- P Photography and Videography Understanding HDR: How It Works and Why You Need It...
- P Photography and Videography How to Choose the Perfect Photo Paper for Your Images?...
- C Computers and Internet How to Choose an Uninterruptible Power Supply (UPS) for Your Computer: Expert Tips...
- S Science and Technology How to choose a home theater system?...
- A Auto and Moto How to Choose a Car Wash? Tips and Recommendations...
- A Animals and plants How ants survive winter: exploring the secrets of their winter life...
- C Construction and repair How to Choose the Best Underfloor Heating?...
- S Sport When is the Champions League final?...
- S Sport When and Where Will the 2014 World Cup be Held?...
Answers on questions: Health
- M Mathematics James is a welder who earns $18 per hour. He works 8 hours per day, Monday through Friday. How much does James earn in one week?...
- C Chemistry What is it called when two liquids can be mixed together to form a solution? saturated Dilute Miscible immiscible...
- M Mathematics Find the volume of a triangular pyramid with a base height of 5 inches, base length of 3 inches, and a height of 6 inches....
- S Spanish Mi hermano acaba de salir y sale con un chica llamado Alyssa. Él es realmente agradable y dulce y la trata bien. Mi madre está comenzando una nueva dieta y está progresando...
- H Health Can you use the Insurance tab to change the address for patient billing statements?...
- E English Read the excerpt below. Which of the following statements best summarizes the main idea of the excerpt? In 1944 Elion joined the Burroughs Wellcome Laboratories (now part of...
- E English Book Selection: Author: Instructions: For each question, respond in one or more paragraphs of at least four complete sentences. Include supporting facts and details from your...
- M Mathematics Is this right??? thank you...
- C Chemistry If the gas in the above system has a volume of v at a pressure of p what is the volume of the same gas at a pressure of 4p...
- S Spanish 1. Selena can eat a large pizza by herself. True or False 2. Who writes the song “Como la Flor”? 3. What does A.B add to the music to make it special? 4. What is the issue with...
Ответ:
A - its dead.
do all of the above
Explanation: