From 40a9e4776cfa8e0c268978aeba49144e5ca19c5e Mon Sep 17 00:00:00 2001 From: Joe S <31870999+KenwoodFox@users.noreply.github.com> Date: Fri, 8 Jan 2021 20:40:29 -0500 Subject: [PATCH] Add 1.22 --- 1/1.22 Calories Burned/calories/main.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 1/1.22 Calories Burned/calories/main.py diff --git a/1/1.22 Calories Burned/calories/main.py b/1/1.22 Calories Burned/calories/main.py new file mode 100644 index 0000000..d334cc4 --- /dev/null +++ b/1/1.22 Calories Burned/calories/main.py @@ -0,0 +1,11 @@ +''' 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 ''' + +''' Type your code here. ''' + +age = float(input()) +weight = float(input()) +bpm = float(input()) +time = float(input()) + +print('Women: {0:.2f} calories\nMen: {1:.2f} calories'.format(((age * 0.074) - (weight * 0.05741) + (bpm * 0.4472) - 20.4022) * time / 4.184, ((age * 0.2017) + (weight * 0.09036) + (bpm * 0.6309) - 55.0969) * time / 4.184))