
Postlab Activities
Exercise 1: Along with eating a heart-healthy diet, everyone should get regular
exercise. You are attending an aqua jogging class. After you have been jogging for 15
minutes, the instructor stops the class and asks everyone to take his or her pulse for six
seconds. (She times you.) She then asks if you are in your target zone. To help the class
out, you decide to program a target-zone calculator. Each person’s target zone is
between 60 percent and 75 percent of his or her predicted maximal heart rate in beats
per minute. A good approximation to this maximal heart rate is 220 minus the
person’s age.
Write a function, InTheZone, that ...