Answer to Question #38335 in C++ for khulud ahmed

Question #38335
1. The Harris-Benedict equation estimates the number of calories your body needs to maintain your weight if you don’t exercise. This is called your basal metabolic rate, or BMR. The formula for the calories for men and women to maintain their weight are:
For Men:
BMR = 66 + ( 13.7 * weight) + ( 5 * height ) – ( 6.8 * age )
And for Women:
BMR = 655 + ( 9.6 * weight ) + ( 1.8 * height ) – ( 4.7 * age )
Where weight is measured in Kilograms, height in Centimeters and age in years
A typical chocolate bar contains 230 calories.
Write a C++ program that allows the user to input his/her weight in kilograms, height in centimeters, age in years, and the character M for male and F for female. Your program should then calculate the number of chocolate bars that should be consumed to maintain the weight for the user of a specified weight, height and age. The program output should report and the number of chocolate bars that need to consume .Finally, your program should ask if they would like to run program again
1
Expert's answer
2014-01-13T14:44:21-0500
The answer to the question is available in the PDF file https://www.assignmentexpert.com/https://www.assignmentexpert.com/homework-answers/programming-answer-38335.pdf

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS