Question: Using c++ Exercise 3: Target Heart Rate There is a formula that will calculate your target heart rate zone for aerobic exercise: Lower limit (bpm)-60%
Exercise 3: Target Heart Rate There is a formula that will calculate your target heart rate zone for aerobic exercise: Lower limit (bpm)-60% of the difference between 220 and your age Upper limit (bpm)-75% of the difference between 220 and your age As with the previous exercises, create a new file, 1abe1 ex3.cpp Your program will take a user's age from standard input (cin), and output (cout) their target heart rate zone, showing both the lower and upper limits, as floating-point values. (Note that if a floating point value is an exact whole number-i.e. the decimal part is exactly.0-C++ will drop the decimal in the display; so 731.0 will display as 731) Example: (user input is bold and underlined): What is your age? 25 Your target heart rate is between 117 and 146.25 bpm
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
