Question: PROGRAMMING I: PYTHON Part 1. The rating of metabolic equivalents (MET) is used to describe the intensity units to each activity. Based on the MET
Part 1. The rating of metabolic equivalents (MET) is used to describe the intensity units to each activity. Based on the MET value of the activity and the length of time you spent performing it, you can calculate the number of calories you burned by an activity. Your weight (in kg) and the duration of the activity (in minutes) are used to calculate the Calories burned by exercise. If you weigh more then you burn more Calories for that activity. Here is the formula: calories burned by exercise = ((METs * 3.5 * weight in kg) / 200) * duration in minutes. Here is a sample run: How much do you weigh, in pounds: 150 How long did you do the activity (in minutes): 10 What is the MET value for your activity? 5 The number of Calories you have burned is: 69.675 You will need to convert the pounds entered to kilograms to do the calculatio The MET values are taken from specific tables. You will find these tables in Moodle. Part 2. Add a password to the beginning of the program. The user must enter CAL2017 to start the program, otherwise give the message "The password you have entered is not correct". Only give the user one chance to get in the program. Are you using sequence, if, or loop for this? Part 3. Modify the program so it starts out (after the correct password) asking if the user wants to compute the number of Calories burned. If they do, then go through the calculations. Compute the total Calories burned, the average Calories burned and count how many times the calculations have been done. Should the average calculation be done every time the user enters data? Also, when one Calorie calculation is complete, ask the user "Do you want to compute another Calorie Calculation
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
