Question: Visual C# Making-a-Difference Exercises 4.14 (Target-Heart-Rate Calculator) While exercising, you can use a heart-rate monitor to see that your heart rate stays within a safe

 Visual C# Making-a-Difference Exercises 4.14 (Target-Heart-Rate Calculator) While exercising, you can

Visual C#

Making-a-Difference Exercises 4.14 (Target-Heart-Rate Calculator) While exercising, you can use a heart-rate monitor to see that your heart rate stays within a safe range suggested by your trainers and doctors. According to the American Heart Association (AHA) (http://bit.ly/AHATargetHeartRates), the fo calculating your maximum heart rate in beats per minute is 220 minus your age in years. Your target heart rate is a range that is 50-85% of your maximum heart rate. [Note: These formulas are mates provided by the AHA. Maximum and target heart rates may vary based on the he ness and gender of the individual. Always consult a physician or qualified health care professional before beginning or modifying an exercise program.] Create a class called HeartRates. The class attributes should include the person's first name, last name, year of bi lass should have a constructor that receives this data as parameters. For each attribut property with set and get accessors. The class also should include a property that calculates and returns the person's age (in years), a property that calculates and returns the person's maximum heart rate and properties that calculate and return the person's minimum and maximum target heart rates. Write an app that prompts for the person's information, instantiates an object of class Heart- Rates and displays the information from that object-including the person's first name, last name rmula for esti- rth and the current year. Your e provide a and year of birth-then calculates and displays the person's age in years, maximum heart rate and target-heart-rate range. issue that has been in the news lately is

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!