Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

The Harris-Benedict equation estimates the number of calories your body needs to

ID: 3679156 • Letter: T

Question

The Harris-Benedict equation estimates the number of calories your body needs to maintain your weight if you do not exercise. This is called your basal metabolic rate, or BMR. The calories needed of a woman to maintain her weight is: BMR = 655 + (4.3 x weight in pounds) + (4.7 x height in inches) - (4.7 x age in years) The calories needed of a man to maintain his weight is: BMR = 66 + (6.3 x weight in pounds) + (12.9 x height in inches) - (6.8 x age in years) A typical chocolate bar will contain around 230 calories. Write a program that allows the user to input the weight, height, and age. The program should then output the number of chocolate bars that should be consumed to maintain one's weight for both a woman and a man of the input weight. height. and age.

Explanation / Answer

Please find the code and output below :

-------------------------------

OUTPUT:

Enter Weight in pounds, height in inches and age in years
163.142
67.7165
26
No:of chocolates needed to maintain for a men = 7.784945434782609
No:of chocolates needed to maintain for a women = 6.7503397826086955

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote