Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

IN C++ PLEASE 5. To maintain one's body weight, an adu It human needs to consume enough calories daily to (1) meet the basal metabolic

image text in transcribed

IN C++ PLEASE

5. To maintain one's body weight, an adu It human needs to consume enough calories daily to (1) meet the basal metabolic rate (energy required to breathe, maintain body temperature, etc.),(2) account for physical activity such as exercise, and (3) account for the energy required to digest the food that is being eaten. For an adult that weighs P pounds, we can estimate these caloric requirements using the following formulas: A. Basal metabolic rate. Calories required-70 . (P/ 22) B. Physical activity: Calories required -0.0385 Intensity P Minutes Here, Minutes is the number of minutes spent during the physical activity and Intensity is a number that estimates the intensity of the activity. Here are some sample numbers for the range of values Activity Intensity Running 10 mph Running 6 mph Basketbal1 Walking 1 mph 17 10 C. Energy to digest food: calories required TotalCaloriesConsumed 0.1 In other words, 10 percent of the calories we consume goes towards digestion. Write a function that computes the calories required for the basal metabolic rate, taking as input a parameter for the person's weight. Write another function that computes the calories required for physical activity, taking as input parameters for the intensity, weight, and minutes spent exercising. Use these functions in a program that inputs a person's weight, an esti mate for the intensity of physical activity, the number of minutes spent performing the physical activity, and the number of calories in one serv ing of your favorite food. The program should then calculate and output how many servings of that food should be eaten per day to maintain the person's current weight at the specified activity level. The computation should include the energy that is required to digest food. Programming Proje You can find estimates of the caloric content of many foods on the Web For example, a double cheeseburger has approximately 1000 calories

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Practical Database Programming With Visual C# .NET

Authors: Ying Bai

1st Edition

0470467274, 978-0470467275

More Books

Students also viewed these Databases questions