Concept explainers
The following are formulas for calculating the training heart rate (THR): THR = (MHR-RHR)×INTEN + RHR where MHR is the maximum heart rate given by (https://en.wikipedia.org/wiki/Heart_rate):
For males: MHR =
RHR is the resting heart rate, and INTEN the fitness level (0.55 for low, 0.65 for medium, and 0.8 for high fitness). Write a program in a script file that determines the THR. The program asks users to enter their gender (male or female), age (number), resting heart rate (number), and fitness level (low, medium, or high). The program then displays the training heart rate (rounded to the nearest integer). Use the program for determining the training heart rate for the following two individuals:
(a) A 19-year-old male, resting heart rate of 64, and medium fitness level.
(b) A 20-year-old female, resting heart rate of 63, and high fitness level.
Want to see the full answer?
Check out a sample textbook solutionChapter 6 Solutions
MATLAB: An Introduction with Applications
- The resistance of a copper wire carrying an electrical current is directly proportional to its length and inversely proportional to its cross-sectional area. A copper wire with a diameter of 0.0126inch has a resistance of 64.9ohms per thousand feet. What length of 0.0201-inch-diameter copper wire will produce a resistance of 33.5ohms?arrow_forwardThe kinetic energy E of an object varies jointly with the object’s mass m and the square of the object’s velocity v . An object with a mass of 50 kilograms traveling at 16 meters per second has a kinetic energy of 6400 joules. What is the kinetic energy of an object with a mass of 70 kilograms traveling at 20 meters per second?arrow_forwardA driver of a car stopped at a gas station to fill up his gas tank. He looked at his watch, and the time read exactly 3:40 p.m. At this time, he started pumping gas into the tank. At exactly 3:44, the tank was full and he noticed that he had pumped 10.7 gallons. What is the average rate of flow of the gasoline into the gas tank?arrow_forward
- Algebra & Trigonometry with Analytic GeometryAlgebraISBN:9781133382119Author:SwokowskiPublisher:Cengage
- Algebra: Structure And Method, Book 1AlgebraISBN:9780395977224Author:Richard G. Brown, Mary P. Dolciani, Robert H. Sorgenfrey, William L. ColePublisher:McDougal LittellCollege Algebra (MindTap Course List)AlgebraISBN:9781305652231Author:R. David Gustafson, Jeff HughesPublisher:Cengage LearningAlgebra for College StudentsAlgebraISBN:9781285195780Author:Jerome E. Kaufmann, Karen L. SchwittersPublisher:Cengage Learning