![]() Example program run: Enter your age: 25 Enter your weight: 130 Enter your beats per minute: 120 Enter the number of minutes you exercised: 45 A woman would burn 297.37 calories A man would burn 402. Call the women_calories and men_calories functions and outputs the number of calories burned with 2 digits to the right of the decimal place for women and men. Write a program that prompts the user to input their age, weight, heart rate, and time as ints, respectively. The function should return the number of calories burned. Write a function named calories burned_man that accepts her age (years), weight (pounds), heart rate (beats per minute), and time (minutes) as arguments. The following equations estimate the calories burned when exercising: Women: Calories = ((Age x 0.074) – (Weight x 0.05741) + (Heart Rate x 0.4472) – 20.4022) x Time / 4.184 Men: Calories = ((Age x 0.2017) + (Weight x 0.09036) + (Heart Rate x 0.6309) – 55.0969 ) x Time / 4.184 Write a function named calories burned_woman that accepts her age (years), weight (pounds), heart rate (beats per minute), and time (minutes) as arguments. When prompting the user you must always include text which lets the user know what should be inputted. Right of the decimal place for women and men. Call the women_calories and men_calories functionsĪnd outputs the number of calories burned with 2 digits to the The user to input their age, weight, heart rate, and time as ints, Minute), and time (minutes) as arguments. Write a function named calories_burned_man thatĪccepts her age (years), weight (pounds), heart rate (beats per Calories per minute (-55.0969 + (0.6309 Heart rate) + (0.1988 Weight) + (0.2017 Age)) / 4.184 Women: Calories per Minute (-20.4022 + (0.4472 Heart Rate) - (0.1263 Weight) + (0.074 Age)) / 4.184 Check out the table below to get an idea of how much calories burned as heart rate increases. ![]() ![]() + (Weight x 0.09036) + (Heart Rate x 0.6309) - 55.0969 ) x Time /Ĥ.184 Write a function named calories_burned_woman that accepts herĪge (years), weight (pounds), heart rate (beats per minute), and Equations estimate the calories burned when exercising: Women:Ĭalories = ( (Age x 0.074) - (Weight x 0.05741) + (Heart Rate xĠ.4472) - 20.4022 ) x Time / 4.184 Men: Calories = ( (Age x 0.2017) ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |