Merge Week 1 #1

Merged
Kenwood merged 10 commits from week-1 into master 2021-01-08 21:14:34 -05:00
1 changed files with 11 additions and 0 deletions
Showing only changes of commit 40a9e4776c - Show all commits

View File

@ -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))