Question: The programs have to be done with Python with NumPy, Pandas and Matplotlib Exercise 6. Calculating lean body mass Write a program to perform the

 The programs have to be done with Python with NumPy, Pandasand Matplotlib Exercise 6. Calculating lean body mass Write a program to

The programs have to be done with Python with NumPy, Pandas and Matplotlib

Exercise 6. Calculating lean body mass Write a program to perform the following tasks: 1. Generate graphs to show the weight vs height for the percentage of LBM being 75% for men and 70% for women. The independent value (x-axis) of the graphs is height ranging from 145 cm to 200 cm. 2. Ask the users to enter the following inputs: Sex: m for male, f for female Height: in cm Weight: in kg 3. Calculate the user's LBM and LBM%. 4. Calculate the recommended maximum weight for the user. Exercise 7. Calculating how many calories do you burn during exercises Calculate weight loss: Divide the burned calories by 7700 to obtain the weight loss (in kg). Example: Activity: Running at 6 miles per hour (MET = 9.8) Weight of the person: 70 kg Duration of the activity: 1 hour Calories burned =T * 60 * MET * 3.5 * W / 200 = 1 * 60 * 9.8 * 3.5 * 70/200 = 720.3 Weight loss = Calories burned / 7700 = 0.094 kg = 0.21 (or 0.094 * 2.2) lb 7) In this exercise you develop a program to calculate the calories burned and weight loss for a combination of exercises a person does for a day. The exercises include the following popular types: Bicycling (12-14 mph) Jumping rope Running at 6 mph Playing tennis Playing basketball Walking for exercises Swimming Hiking Prompt the user to enter: Weight in kg Bicycling: yeso, how many minutes Jumping rope: yeso, how many minutes Running at 6 mph: yeso, how many minutes Playing tennis: yeso, how many minutes Playing basketball: yeso, how many minutes Walking for exercises: yeso, how many minutes Swimming: yeso, how many minutes Hiking: yeso, how many minutes Calculate the total calories burned and weight loss. Exercise 6. Calculating lean body mass Write a program to perform the following tasks: 1. Generate graphs to show the weight vs height for the percentage of LBM being 75% for men and 70% for women. The independent value (x-axis) of the graphs is height ranging from 145 cm to 200 cm. 2. Ask the users to enter the following inputs: Sex: m for male, f for female Height: in cm Weight: in kg 3. Calculate the user's LBM and LBM%. 4. Calculate the recommended maximum weight for the user. Exercise 7. Calculating how many calories do you burn during exercises Calculate weight loss: Divide the burned calories by 7700 to obtain the weight loss (in kg). Example: Activity: Running at 6 miles per hour (MET = 9.8) Weight of the person: 70 kg Duration of the activity: 1 hour Calories burned =T * 60 * MET * 3.5 * W / 200 = 1 * 60 * 9.8 * 3.5 * 70/200 = 720.3 Weight loss = Calories burned / 7700 = 0.094 kg = 0.21 (or 0.094 * 2.2) lb 7) In this exercise you develop a program to calculate the calories burned and weight loss for a combination of exercises a person does for a day. The exercises include the following popular types: Bicycling (12-14 mph) Jumping rope Running at 6 mph Playing tennis Playing basketball Walking for exercises Swimming Hiking Prompt the user to enter: Weight in kg Bicycling: yeso, how many minutes Jumping rope: yeso, how many minutes Running at 6 mph: yeso, how many minutes Playing tennis: yeso, how many minutes Playing basketball: yeso, how many minutes Walking for exercises: yeso, how many minutes Swimming: yeso, how many minutes Hiking: yeso, how many minutes Calculate the total calories burned and weight loss

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!