Question: The programs have to be done with Python with NumPy, Pandas and Matplotlib DCR EXAMPLE A male is 23 years old, 5 foot 9 inches

The programs have to be done with Python with NumPy, Pandas and Matplotlib
DCR EXAMPLE A male is 23 years old, 5 foot 9 inches tall, and 195 pounds. He has a moderate exercise 3-5 days a week. What is this man's daily calorie requirement? BMR = (4.536 * weight in pounds) + (15.88 x height in inches) - (5 x age) + 5 = (4.536 * 195) + (15.88 * 69) - (5 * 23) + 5 = 884.52 + 1095.72 - 115 + 5 = 1870.24 calories Calories Per Day for moderate exercise = BMR X 1.55 = 1870.24 x 1.55 = 2899 calories Exercise #8 Develop a program to perform the following tasks: a. Prompt the user to enter the following data: sex: male or female age: how many years old height: how many inches weight: how many pounds exercise level: little or no exercise lightly exercise (1-3 days/week) moderate exercise (3-5 days/week) hard exercise (6-7 days/week) very hard exercise (a physical job) b. Based on the given user's sex, age, and weight, create a series of calories curves (BMR) for various heights. Horizontal axis is the weight (in kg) ranging from 40 to 100 kg (increment of 5 kg). Vertical axis is the calories values. Each height has 1 calories curve. The height can range from 145 cm to 200 cm (increment of 5 cm). This will make around 21 curves in the graph. Do another graph for DCR values. c. Output the BMR value and DCR value for the user d. Mark the user's BMR and DCR values on the graphs. MEN: BMR formula (metric) BMR = (10 x weight in kg) + (6.25 x height in cm) - (5 x age in years) + 5 MEN: BMR formula (imperial) BMR = (4.536 x weight in pounds) + (15.88 x height in inches) - (5 x age in years) + 5 WOMEN: BMR formula (metric) BMR = (10 x weight in kg) + (6.25 x height in cm) - (5 x age in years) - 161 WOMEN: BMR formula (imperial) BMR = (4.536 x weight in pounds) + (15.88 x height in inches) - (5 x age in years) - 161 1. If you are sedentary (little or no exercise) Calories Per Day = BMR X 1.2 2. If you are lightly active (light exercise or sports 1-3 days/week) Calories Per Day = BMR X 1.375 3. If you are moderately active (moderate exercise 3-5 days/week) Calories Per Day = BMR X 1.55 4. If you are very active (hard exercise 6-7 days/week) Calories Per Day = BMR X 1.725 5. If you are super active (very hard exercise and a physical job) Calories Per Day = BMR X 1.9 DCR EXAMPLE A male is 23 years old, 5 foot 9 inches tall, and 195 pounds. He has a moderate exercise 3-5 days a week. What is this man's daily calorie requirement? BMR = (4.536 * weight in pounds) + (15.88 x height in inches) - (5 x age) + 5 = (4.536 * 195) + (15.88 * 69) - (5 * 23) + 5 = 884.52 + 1095.72 - 115 + 5 = 1870.24 calories Calories Per Day for moderate exercise = BMR X 1.55 = 1870.24 x 1.55 = 2899 calories Exercise #8 Develop a program to perform the following tasks: a. Prompt the user to enter the following data: sex: male or female age: how many years old height: how many inches weight: how many pounds exercise level: little or no exercise lightly exercise (1-3 days/week) moderate exercise (3-5 days/week) hard exercise (6-7 days/week) very hard exercise (a physical job) b. Based on the given user's sex, age, and weight, create a series of calories curves (BMR) for various heights. Horizontal axis is the weight (in kg) ranging from 40 to 100 kg (increment of 5 kg). Vertical axis is the calories values. Each height has 1 calories curve. The height can range from 145 cm to 200 cm (increment of 5 cm). This will make around 21 curves in the graph. Do another graph for DCR values. c. Output the BMR value and DCR value for the user d. Mark the user's BMR and DCR values on the graphs. MEN: BMR formula (metric) BMR = (10 x weight in kg) + (6.25 x height in cm) - (5 x age in years) + 5 MEN: BMR formula (imperial) BMR = (4.536 x weight in pounds) + (15.88 x height in inches) - (5 x age in years) + 5 WOMEN: BMR formula (metric) BMR = (10 x weight in kg) + (6.25 x height in cm) - (5 x age in years) - 161 WOMEN: BMR formula (imperial) BMR = (4.536 x weight in pounds) + (15.88 x height in inches) - (5 x age in years) - 161 1. If you are sedentary (little or no exercise) Calories Per Day = BMR X 1.2 2. If you are lightly active (light exercise or sports 1-3 days/week) Calories Per Day = BMR X 1.375 3. If you are moderately active (moderate exercise 3-5 days/week) Calories Per Day = BMR X 1.55 4. If you are very active (hard exercise 6-7 days/week) Calories Per Day = BMR X 1.725 5. If you are super active (very hard exercise and a physical job) Calories Per Day = BMR X 1.9
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
