Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

solve it using the c program Problem 1: The following are formulas for calculating the training heart rate (THR): THR=(MHRRHR)INTEN+RHR where MHR is the maximum

solve it using the c program
image text in transcribed
Problem 1: The following are formulas for calculating the training heart rate (THR): THR=(MHRRHR)INTEN+RHR where MHR is the maximum heart rate. For males: MHR=1+e0.033(agc104.3)203.7 For females: MHR=1+e0.0453(age107.5)190.2 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 that determines the THR. The program asks users to enter their gender (male ' M ' or female ' F '), age (number), resting heart rate (number), and fitness level (low ' L ', medium ' M ', or high ' H '). 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 three 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. (c) A 63-year old male, resting heart rate of 82 , and low fitness level

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Essentials of Database Management

Authors: Jeffrey A. Hoffer, Heikki Topi, Ramesh Venkataraman

1st edition

133405680, 9780133547702 , 978-0133405682

More Books

Students also viewed these Databases questions

Question

How do common stock and preferred stock differ?

Answered: 1 week ago

Question

7. Discuss the key features of the learning organization.

Answered: 1 week ago