Question: #include using namespace std; int main ( ) { / / input: const double WEIGHT _ CONSTANT = 1 0 . 0 ; const double
#include
using namespace std;
int main
input:
const double WEIGHTCONSTANT;
const double HEIGHTCONSTANT;
const double AGECONSTANT;
double wha; weight, height, age
char g; gender
output:
double bmr; body mass ratio
enter information from user
cout
Enter your genderMF: ;
cin g;
cout
Enter your age : ;
cin a;
cout
Enter your weight : ;
cin w; weight in pounds weight
cout
Enter your height : ;
cin h; height in feet
calculation of BMR
ifgM if gender is male
bmr wha;
else if gender is female
bmr wha;
std::cout "fixed;
Your BMR is: bmr;
return ;
I need this code to round up to the nearest whole number for the BMR Output. How do I do this?
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
