63 103
Assignments Done
Successfully Done
In July 2018

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
Expert's answer

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!


No comments. Be first!

Leave a comment

Ask Your question

Privacy policy Terms and Conditions