Question: In C programming, Create a program that prompts the user for their age and their resting heart rate. Use the Karvonen formula to determine the

In C programming,

Create a program that prompts the user for their age and their resting heart rate. Use the Karvonen formula to determine the target heart rate based on a range of intensities from 55% to 95%.

TargetHeartRate = (((220 - age) - restingHeartRate) x intensity) + restingHeartRate

Use a loop to increment the percentages from 55 to 95.

Write a function that accepts as parameters the users age, resting heart rate, and intensity and

returns the Karvonen target heart rate.

Write a function that displays the tabular report, formatted as shown.

Generate a table with the results as shown in the example output.

Ensure the heart rate and age are in a normal range. Dont allow the user to continue without entering valid inputs.

Intensity | Rate

--------------------- 55% | 138 bpm 60% | 145 bpm 65% | 151 bpm : | : (extra lines omitted) 85% | 178 bpm 90% | 185 bpm 95% | 191 bpm 

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!