To maintain one’s body weight, an adult 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:
1.Basal metabolic rate: Calories required = 70 * (P/ 2.2)0-756
2.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 die range of values:
Activity | Intensity |
Running 10 mph: | 1 7 |
Running 6 mph: | 10 |
Basketball: | 8 |
Walking 1 mph: | 1 |
3. Energy to digest food: calories required = TolalCaloriesConsumed * 0.1
In other words, 10 percent of the calories we consume goes towards digestion.
Write a function that computes die 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 estimate for die intensity of physical activity, the number of minutes spent performing the physical activity, and the number of calories in one sewing 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.
You can find estimates of the caloric content of many foods on the Web. For example, a double cheeseburger has approximately 1000 calories.
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.