Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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 ageStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access with AI-Powered Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started