Question: This is a C++ problem. Please give the full explanation and codes in details. Thanks. (Stretch 1) Basal Metabolic Rate (from the Savitch Ch 2

 This is a C++ problem. Please give the full explanation and

This is a C++ problem. Please give the full explanation and codes in details. Thanks.

(Stretch 1) Basal Metabolic Rate (from the Savitch Ch 2 Programming Projects) The Harris-Benedict equation estimates the number of calories your body needs to main- tain your weight if you do no exercise whatsoever. This is called your basal metabolic 2 rate, or BMR (note this is a single variable name, not three variables multiplied together) The formula for the calories needed for a woman to maintain her weight is BMR = 655 + (4.3 weight in pounds) + (4.7 height in inches)-(4.7x age in years) The formula for the calories needed for a man to maintain his weight is BM -664 (6.3x weight in pounds) + (12. }t in inches)-(6.8x age n years) A typical chocolate bar contains approximately 230 calories. Write a program that allows the user to input his or her weight in pounds, height in inches, age in years, and the character 'M' for male or F, for female. The program should then output the number of 230 calorie chocolate bars that need to be consumed to maintain one's weight for a person of the input sex, height, weight, and age

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!