1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
klasskru [66]
2 years ago
11

The following equations estimate the calories burned when exercising (source):

Computers and Technology
1 answer:
riadik2000 [5.3K]2 years ago
8 0

Answer:

# 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

#main function to gets input for age, weight, hear rate and time and print Women and Man calorie burnt

def main():

 #get user input for age, weight, hear rate and time

 age = int(input("Enter your age:"))

 weight = int(input("Enter your weight:"))  

 heartRate = int(input("Enter your heart rate:"))

 time = int(input("Enter your time:"))

 #calculate calories for women and men

 caloriesWomen = ((age * 0.074) - (weight * 0.05741) + (heartRate * 0.4472) - 20.4022) * time / 4.184

 caloriesMen = ((age * 0.2017) + (weight * 0.09036) + (heartRate * 0.6309) - 55.0969) * time / 4.184

 #print calories for women and men

 print("Women: %.2f calories"%caloriesWomen)

 print("Men: %.2f calories"%caloriesMen)

#calling main function

main()

Explanation:

1) Above is your updated program.

2) Please copy it in python file and run

3) Below is the test output for this program

Enter your age:49

Enter your weight:155

Enter your heart rate:148

Enter your time:60

Women: 580.94 calories

Men: 891.47 calories

You might be interested in
What does the following code do? Assume "list" is an array of int values, "temp" is some previously initialized int value, and "
____ [38]

Answer:

Counting the number of elements in the array list smaller than temp.

Explanation:

We have an array list,a previously initialized integer temp and a an integer c initialized with 0.

In the code a for loop is used to iterate over the array and it is checking if the element at jth index is less than temp if it is then increasing the variable c by 1.

Hence when the loop ends the c will be having the count of the integers in array list that are smaller than temp.

6 0
4 years ago
Which programming language uses objects?<br> a. C++<br> b. ALGOL<br> c. Pascal<br> d. BASIC
yanalaym [24]
So this is your answer hope this helps you
C++
7 0
3 years ago
I need someone to help. This is the links I found and I'm going through the same thing. I live in small town where they think I'
Hunter-Best [27]

Huh what exactly do you need help with

8 0
3 years ago
A disadvantage of using hydroelectric power is:
siniylev [52]
Hydroelectric power doesn't pollute water or add anything to it,
it doesn't use wind for its operation, and it doesn't emit anything
into the air.   It does, however, disrupt the river ecosystem.
3 0
4 years ago
For editing youtube videos, what is the best software to use?
Stels [109]
What type of editing ?

7 0
4 years ago
Read 2 more answers
Other questions:
  • ________ errors may indicate that an attacker is trying to send invalid data to the server. 404 303 500 512
    11·1 answer
  • Convert binary number 11101111.10111 to decimal
    5·1 answer
  • Write a function ngrams(n, tokens) that produces a list of all n-grams of the specified size from the input token list. Each n-g
    6·1 answer
  • Please help me with this , I’m stuck and cannot understand this , please help me with this , I’ll appreciate it alot
    13·1 answer
  • Computer father known as​
    5·1 answer
  • We investigated a program which is probably used as one component of a bigger password breaking algorithm. We determined that th
    14·1 answer
  • Who has pad let and wants to talk
    15·2 answers
  • Is climate change a man-made problem or a natural occurrence ? Why or why not ?
    8·1 answer
  • Computers are used because they :
    9·2 answers
  • A _____ focuses on creating software systems like tools, utilities, antivirus programs, and operating systems.
    12·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!