Question: please help Expression for calories burned during workout Different amounts of calories can be burned during various forms of exercise. One metric used to differentiate

 please help Expression for calories burned during workout Different amounts of

calories can be burned during various forms of exercise. One metric used

please help

Expression for calories burned during workout Different amounts of calories can be burned during various forms of exercise. One metric used to differentiate between the intensity of different exercise activities is the Metabolic Equivalent of Task (MET) (source). The following equation estimates the calories burned when doing an exercise with a specific MET value (source): Calories Burned = Weight (kilograms) * MET value * Time (hours) Write a program using the variables weight weight in kilograms), MET (MET value), and time (time in hours). Given weight is provided in pounds (lbs) and should be converted to kilograms (kg) by dividing by 2.2. Given time is provided in minutes and should be converted to hours. Assign the value for the calories burned to the variable caloriesBurned. I Ex: Given weight InPounds - 155 MET = 8 timeInMinutes = 60 the output is: calories Burned 563.6364 1 weight InPounds = randi([100, 260], 1) 2 MET = randi([1, 16),1) 3 timeInMinutes = randi([30, 120], 1) 5% Convert weight from pounds to kilograms 6 weight 8% convert time from minutes to hours time = I 11 % Calculate calories burned 12 caloriesBurned = 13

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!