Cpp Code for Heart Rate

This cpp programming code is used to find the heart rate. You can select the whole cpp code by clicking the select option and can use it. When you click text, the code will be changed to text format. This cpp program code will be opened in a new pop up window once you click pop-up from the right corner. You can just copy, paste this cpp code and use it to find the heart rate.

#include<iostream>
using namespace std;
int main(void)
{
float rate=12,age=50;
float maxrate = 220;
float heartrate = maxrate - age;
float val = heartrate - rate;

float res1 = (val*0.4);
float res2 = (val*0.6);

float targetmin = res1+rate;
float targetmax = res2+rate;

cout<<"\nHeart beat low rate: "<<targetmin<<" - "<<targetmax;

res1 = (val*0.6);
res2 = (val*0.7);

targetmin = res1+rate;
targetmax = res2+rate;
cout<<"\nHeart beat medium rate: "<<targetmin<<" - "<<targetmax;

res1 = (val*0.7);
res2 = (val*0.85);

targetmin = res1+rate;
targetmax = res2+rate;
cout<<"\nHeart beat high rate: "<<targetmin<<" - "<<targetmax;
return 0;
}
Other Programming Codes
Online Calculator : Heart Rate
Click on the select code link to copy and paste this free cpp program code for heart rate.

english Calculators and Converters


Sitemap